Demonstration file processing method and device, electronic equipment and storage medium
By detecting the preset operations of the session panel and using the artificial intelligence model to determine the first page, the style assimilation or alienation between different pages in the demonstration file is solved, and the problems of cumbersome style settings and low intelligence in the existing technology are improved, and the user experience and generation effect are improved.
Patent Information
- Application Number
- CN202311170884.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2025-03-14
AI Technical Summary
The existing demonstration file processing technology has problems such as cumbersome operation, low intelligence and poor user experience, especially in the style setting of the demonstration file.
By detecting preset operations based on the session panel, the associated first page is determined, and the style assimilation and/or alienation between different pages in the demonstration file is performed based on the page, and automated processing is achieved using an artificial intelligence model.
It simplifies the style of user processing of demonstration files, improves the intelligence and user efficiency of demonstration files, and improves the generation effect of demonstration files.
Smart Images

Figure CN119623419A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to but is not limited to the field of document processing technology, and in particular to a presentation file processing method and device, an electronic device and a storage medium. Background Art
[0002] Presentation files can be used for presentations. Presentation files can also be called presentations.
[0003] Through the screening of presentations, static content can be dynamically displayed to users in parts.
[0004] In some cases, presentation files are also called slides.
[0005] Generally, a presentation file may include multiple slides. There is a correlation between the contents of multiple slides. Generally, the style of a presentation file can be uniformly set according to a selected template, or the style of each slide is manually set by the user. This style setting of a presentation file has the problems of cumbersome operation, low intelligence and poor user experience. Summary of the invention
[0006] The embodiments of the present disclosure provide a method and device for processing a presentation file, an electronic device, and a storage medium.
[0007] The present disclosure provides a method for processing a presentation file, the method comprising:
[0008] Detect preset actions based on session panels;
[0009] In response to the preset operation, determining a first page associated with the preset operation;
[0010] Based on the first page, style assimilation and / or style divergence between different pages in the presentation file is performed.
[0011] A second aspect of the present disclosure provides a presentation file processing device, the device comprising:
[0012] A detection module, used for detecting preset operations based on the session panel;
[0013] A determination module, configured to determine, in response to the preset operation, a first page associated with the preset operation;
[0014] The execution module is used to execute style assimilation and / or style alienation between different pages in the presentation file based on the first page.
[0015] A third aspect of the present disclosure provides an electronic device, including:
[0016] processor;
[0017] a memory for storing processor-executable instructions;
[0018] Among them, the processor is configured to: implement the demonstration file processing method provided by any one of the technical solutions of the first aspect when running the executable instructions.
[0019] A fourth aspect of an embodiment of the present disclosure provides a computer-readable storage medium, which stores an executable program. When the executable program is executed by a processor, the method for processing a presentation file provided by any one of the solutions of the first aspect is implemented.
[0020] The technical solution provided by the embodiments of the present disclosure can use an artificial intelligence (AI) model to determine the first page when a preset operation is detected, and based on the first page, realize automatic processing of style assimilation or alienation between different pages in the presentation file, thereby simplifying user processing of the style of the presentation file, improving the intelligence and user efficiency of the presentation file processing, and improving the generation effect of the presentation file.
[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0023] Figure 1 The figure is a flowchart of a method for processing a presentation file according to an exemplary embodiment.
[0024] Figure 2A The diagram is a schematic diagram of a file interface and a session panel according to an exemplary embodiment.
[0025] Figure 2B The diagram is a schematic diagram of a file interface and a session panel according to an exemplary embodiment.
[0026] Figure 3 The figure is a flowchart of a method for processing a presentation file according to an exemplary embodiment.
[0027] Figure 4 The figure is a flowchart of a method for processing a presentation file according to an exemplary embodiment.
[0028] Figure 5 It is a structural schematic diagram of a presentation file processing device according to an exemplary embodiment.
[0029] Figure 6The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present disclosure as detailed in the appended claims.
[0031] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0032] like Figure 1 As shown, the embodiment of the present disclosure provides a method for processing a presentation file, the method comprising:
[0033] S1110: Detecting a preset operation based on a session panel;
[0034] S1120: In response to the preset operation, determining a first page associated with the preset operation;
[0035] S1130: Based on the first page, perform style assimilation and / or style alienation between different pages in the presentation file.
[0036] The method for processing a presentation file may be executed by an electronic device, which may include but is not limited to a terminal or a server, and the terminal may correspond to any form of terminal device. For example, the terminal device may include but is not limited to: a tablet computer, a desktop computer, a mobile phone, a vehicle-mounted device and / or a smart office device. The server may be an application server of a target application that generates a presentation file, etc.
[0037] If the demonstration file is processed locally, it can be executed by the terminal. If the demonstration file is processed online, it can be executed by the server.
[0038] The session panel may be a built-in session panel of a target application for generating the presentation file.
[0039] In some embodiments, the target application may have an application window, in which an editing panel and a conversation panel may be provided. The editing panel may be used to manually edit the presentation file. The conversation panel may be used to conduct an AI dialogue based on conversational language. The AI dialogue may be conducted by an AI model in natural language. FIG. 2A to FIG. 2B As shown, in FIG. 2A to FIG. 2BThe left side of the figure shows the document interface of the presentation file, and the right side shows the conversation panel. In the conversation panel, there is a conversation in natural language.
[0040] In some embodiments, the document interface may be a type of the first interface, and the conversation panel may be a type of the second interface. That is, the first interface may include but is not limited to an editing panel for editing a target file. The second interface may include but is not limited to a conversation panel for providing a user with a function of controlling the content of a target file in natural language.
[0041] In some embodiments, the first interface and the second interface may be independent interfaces, and the second interface may also be a part of the first interface.
[0042] In other examples, the second interface may be a wizard interface, which may be used to guide the user to input or select one or more parameters according to a predetermined process to complete the processing of the document outline and / or document content. For example, the predetermined process may include: multiple stages such as title input, document outline generation, document style generation, and document content generation that are executed in sequence. In this embodiment, the document refers to a presentation file to which the user can add, delete, or modify content.
[0043] In some embodiments, the editing panel and the session panel are arranged side by side in the application window, and usually, the area of the editing panel is slightly larger than the area of the session panel.
[0044] In some other embodiments, the target application may have at least two small windows, which are respectively an editing window for manually editing a presentation file and a session window where a session panel is located.
[0045] When editing a presentation file based on a session panel, two small windows or two panels are displayed side by side. The two small windows can be displayed side by side horizontally or vertically. The two panels here are the aforementioned editing panel and session panel.
[0046] Specifically, it can be determined according to the aspect ratio of the display screen of the electronic device executing the presentation file. For example, if the aspect ratio is greater than 1, the two small windows or two panels are displayed side by side horizontally. For another example, if the aspect ratio is less than 1, the two small windows or two panels are displayed side by side vertically.
[0047] One or more controls related to presentation file editing may be provided in the conversation panel. In some embodiments, the conversation panel at least includes a conversation input box, which can be used for natural language input by the user.
[0048] The aforementioned AI model can run in the terminal or on the server.
[0049] The AI model can be various neural network models and / or machine learning models.
[0050] The AI model can recognize natural language input by the user, obtain the semantics of the natural language, automatically generate a presentation file based on the semantics, and / or modify the presentation file.
[0051] Exemplarily, the AI model may include an LLM (Large Language Model, or “large-scale language model”).
[0052] For example, AI models may include GPT (Generative Pre-Trained Transformer Model). The training process of the GPT model is: unsupervised pre-training on a large-scale corpus, and then fine-tuning on specific tasks to achieve better results. The GPT model can be used for various natural language processing tasks, such as text generation, machine translation, sentiment analysis, etc.
[0053] The AI model may process the content and / or style of the presentation file.
[0054] The style can be understood as the representative visual effect presented in the entire document or a specific page of the presentation document.
[0055] In some embodiments, the style is determined by the style parameters. If the style is the same (consistent style), the corresponding style parameters are the same. For example, if the setting values corresponding to the fonts of different parts of the content are the same, it means that the styles corresponding to the fonts are the same. In other embodiments, style differentiation can be understood as different styles, and the corresponding style parameters are different. For example, the corresponding parameter values of fonts, lines, typesetting methods, and background colors are all different.
[0056] For example, the style may be associated with at least one of the following contents of a single page or all pages of the presentation document:
[0057] Use of colors in presentation documents;
[0058] Use of lines in presentation files;
[0059] Layout of presentation documents;
[0060] Animation application of presentation files;
[0061] Contents of the presentation file.
[0062] For example, the color application of a presentation file may include: the background color of the presentation file, the color of the font, the hue of the inserted picture; the setting of style parameters such as the color combination used in each page;
[0063] For another example, the use of lines in a presentation file may include the settings of style parameters such as the type of most lines, the thickness of the lines, the color of the lines, the roundness of the fonts, the thickness of the outer contour of the graphics, etc.
[0064] For example, some presentation files use more curves and fewer straight lines; some presentation files tend to use thick lines and fewer thin lines. The style parameters also include the limit on the number of curves and straight lines in the presentation file.
[0065] Exemplarily, the layout of the presentation document includes, but is not limited to: the setting of style parameters such as the spacing between two document objects and the stacking method;
[0066] Exemplarily, the animation application of the presentation file includes, but is not limited to: the setting of style parameters such as the entry and exit methods of the object;
[0067] Exemplarily, the content of the presentation file includes, but is not limited to: the setting of style parameters such as the writing style of the content, the style of text matching images, etc., which can be used as parameters of prompt words for building a generative model;
[0068] This preset action is based on the preset actions in the Session panel.
[0069] In some embodiments, the preset operation may be a style setting operation for a single page in a presentation file, or a content setting operation for creating or modifying a single page.
[0070] Exemplarily, the preset operation may include at least one of the following:
[0071] Act on manual operations within the session panel;
[0072] Natural language based interactive operations within the conversation panel.
[0073] According to the operation parameters of the preset operation, the first page pointed to by the preset operation can be determined.
[0074] The first page can be a single page in the presentation file. There are multiple single pages in the presentation file, and these single pages are arranged in a certain order to form the presentation file.
[0075] The first page may be a page that has been created for the demonstration file, or may be a page that is yet to be created for the demonstration file.
[0076] Exemplarily, determining the first page may include: determining a page identifier, content, and / or initial style of the first page.
[0077] After the first page is determined, the styles of different pages in the presentation file are assimilated or alienated.
[0078] If the style is assimilated, the styles of different pages in the presentation file are consistent, for example, the use of colors is consistent, the lines are consistent, the animation settings, and / or the layout methods are consistent.
[0079] If it is a style alienation operation, the styles of different pages in the presentation file are at least partially different, for example, different colors, different lines, different animation settings, and / or different layout methods.
[0080] Exemplarily, based on the first page, performing style assimilation and / or style alienation between different pages in the presentation file may include but is not limited to at least one of the following:
[0081] Set the style of the first page so that the style of the first page is consistent with other pages in the presentation file, thereby achieving style assimilation;
[0082] Set the style of the first page so that the style of the first page is consistent with other pages in the presentation file, thereby achieving style alienation;
[0083] Set the style of the first page so that part of the style of the first page is consistent with other pages in the presentation file to achieve partial style assimilation, and at the same time, make part of the style of the first page consistent with other pages in the presentation file to achieve partial style alienation, so that multiple pages in the presentation file can maintain some overall consistent styles, and some styles are differentiated, thereby improving the visual effect of the presentation file. For example, make the main style of multiple pages of the presentation file consistent, while the detailed style remains personalized (that is, differentiated). For example, make the style of color application of the presentation file consistent, so that the layout of the presentation file remains personalized according to the content of each page;
[0084] Based on the style of the first page, adjust the styles of other pages in the presentation file to achieve style assimilation;
[0085] Based on the style of the first page, adjust the styles of other pages in the presentation file to achieve style alienation;
[0086] Based on the style of the first page, the styles of other pages in the presentation file are adjusted to achieve partial style assimilation and partial style alienation of different pages in the presentation file; for example, the main style of different pages in the presentation file is assimilated and the detailed style is personalized.
[0087] In some embodiments, a model of the AI model determines the first page of the style operation to be performed based on the preset operation after detecting the preset operation in the session panel, and performs a style assimilation operation or a style alienation operation on the first page. A model in the AI model receives the first page (or the entire presentation file and the marked first page) and the operation type of the style operation output by the previous model, and then performs the style operation on the presentation file to obtain the presentation file after the style operation is completed, and displays the presentation file after the style operation is completed on the first interface for the user to view. Alternatively, a thumbnail of the first page after the style operation is previewed on the second interface for the user to preview. At this time, the user can determine whether to cancel the style operation, update the style of the presentation file, or determine whether the style is needed based on the preview effect. At this time, the second interface may actually have operation controls for detecting undo operations, update operations, and / or determination operations.
[0088] In other embodiments, an AI model can complete the determination of the first page based on the detected preset operation, determine the style operation and directly perform the corresponding style operation on the presentation file, and display the style-adjusted file on the first interface or preview it on the second interface.
[0089] In some embodiments, the AI model may include the following steps when performing the above operations:
[0090] Get the prompt word (prompt);
[0091] According to the prompt word, the first page and the style operation to be performed are determined; or, according to the prompt word, the corresponding style operation is performed.
[0092] The prompt word may include one or more prompt words, and the multiple prompt words may be written into a preset prompt word template.
[0093] For example, the prompt word may be generated according to operation information of a preset operation, overall style information of the presentation file, and / or style information of each page of the presentation file.
[0094] The operation information may include but is not limited to at least one of the following:
[0095] Operation type, indicating the operation type of the preset operation;
[0096] Operation identification, identifying the preset operation;
[0097] The page information of the preset operation, which may include: page number or page content;
[0098] The user account information associated with the preset operation.
[0099] In some embodiments, the user account information may include, but is not limited to, at least one of the following:
[0100] Login account information for preset operations;
[0101] Account information for creating the demo file;
[0102] Editing account information of the demo file;
[0103] Session account information for the meetup panel.
[0104] The user account information may specifically include: user account and / or user style preference information and / or user tag information.
[0105] In some embodiments, the overall style information of the presentation file and / or the style information of each page of the presentation file can be directly read from the file parameters of the current presentation file.
[0106] In other embodiments, the overall style information of the presentation file and / or the style information of each page of the presentation file may also be directly identified by the AI model based on the presentation file.
[0107] In short, after obtaining the operation information of the preset operation, the overall style information of the presentation file and / or the style information of each page of the presentation file, the AI model can process it and generate the prompt word through text operations such as keyword extraction or text meaning summary.
[0108] In the embodiment of the present disclosure, when the preset operation is detected, the first page is determined, and the automatic processing of style assimilation or alienation between different pages in the presentation file is implemented based on the first page. The style processing at this time all involves the style of the first page.
[0109] like Figure 3 As shown, the embodiment of the present disclosure provides a method for processing a presentation file, the method comprising:
[0110] S1210: Detecting a preset operation based on the session panel;
[0111] S1220: In response to the preset operation, determining a first page associated with the preset operation;
[0112] S1230: determining a style operation to be performed according to the operation type of the preset operation, wherein the style operation to be performed includes: a first operation to implement the style assimilation and / or a second operation to implement the style alienation;
[0113] S1240: Based on the first page, perform the style assimilation and / or style alienation of the pages in the presentation file.
[0114] The first operation can achieve style assimilation of some or all pages in the presentation file;
[0115] The second operation can realize the style alienation of some or all pages in the presentation file. The style alienation here means the differentiation of style.
[0116] In the embodiment of the present disclosure, the first operation and / or the second operation related to style assimilation and / or alienation are performed.
[0117] Different operation types can be mapped to different style operations, so that based on a preset operation, the electronic device can intelligently perform style processing.
[0118] Different operation types actually directly or indirectly reflect the user's different style processing intentions. The AI model automatically determines the style processing intention and executes the aforementioned style assimilation and / or style alienation.
[0119] For another example, the first AI model extracts the style processing intent, and then the second AI model performs style processing on the presentation file based on the style processing intent of the first AI model.
[0120] Exemplarily, the natural language processing capability of the first AI model is stronger than that of the second AI model, and the stylization processing capability of the second AI model is stronger than that of the first AI model. In this way, different AI models have different processing capabilities, and by using the models in combination, the style processing effect of the presentation file can achieve the user's expected effect.
[0121] In some embodiments, determining the style operation to be performed according to the operation type of the preset operation includes:
[0122] In response to the preset operation being a single-page creation operation or a single-page regeneration operation, determining that the style operation to be executed is the first operation; wherein the single-page creation operation is used to create the first page of the presentation file; and the single-page regeneration operation is used to regenerate the first page of the presentation file;
[0123] or,
[0124] In response to the preset operation being a beautification operation, determining the style operation to be performed according to whether the beautification operation is related to a first presentation template; the first page is a page to be beautified in the presentation file;
[0125] or,
[0126] In response to the preset operation being a personalized operation for the first page, determining to execute the second operation.
[0127] The single page creation operation may include but is not limited to at least one of the following:
[0128] Demonstrate the operation of inserting a single page between two adjacent pages of a document;
[0129] Single page append operation at the end of the demonstration file;
[0130] Append operations to the first page of the demonstration file.
[0131] The single page regeneration operation may be an operation of regenerating a certain page.
[0132] Since the style assimilation process can be directly performed based on the existing pages in the presentation file regardless of whether it is a single page creation operation or a single page regeneration operation, specifically, the style assimilation of the first page is performed based on the style of one or two adjacent pages in the presentation file.
[0133] In some cases, it is detected that the preset operation is a single page creation operation or a single page regeneration operation, and it is determined to perform the first operation or the second operation according to whether the styles of the pages created in the current state of the presentation file are unified.
[0134] If the styles of multiple pages of the created presentation file are consistent in the current state, then determine to execute the first operation;
[0135] If the styles of the multiple pages of the created presentation file in the current state are not uniform and do not satisfy the specific change rule, it is determined that neither the first operation nor the second operation is performed;
[0136] If the styles of multiple pages of the created presentation file in the current state are not uniform and satisfy a specific change rule, a second operation is determined; and when executing the second operation, the second operation is executed according to the adjacent pages of the first page, so that the style of the first page maintains the difference in style with the adjacent pages and satisfies the specific change rule.
[0137] If the preset operation is a beautification operation, it means that the user is not satisfied with the aesthetics of the current presentation file, and the user beautifies the presentation file manually or based on natural language interaction with the session panel.
[0138] If, during the beautification operation, style-related operations are involved, or at least overall style-related operations are involved, then it is determined whether the current beautification operation involves modification of the first presentation template currently used in the presentation file.
[0139] For example, when creating a presentation file, a first presentation template is used. When beautifying the first page, the setting items of the first page according to the style defined by the first presentation template are modified based on the manual beautification operation of the user or the beautification operation based on the AI dialogue with the AI model. It can be determined whether to perform style assimilation and / or style alienation of multiple pages of the presentation file based on the beautified first page according to whether the setting items modified by the beautification operation are set to the setting items defined by the first presentation template. The setting items include but are not limited to the setting items of the background color.
[0140] In some embodiments, the first presentation template may be a template currently used in the presentation file, or a template prepared for use according to user instructions, or a template with the highest probability of use determined based on user usage habits; wherein the template may be a master template of the presentation file.
[0141] In some embodiments, Figure 4 As shown, the embodiment of the present disclosure provides a method for processing a presentation file, the method comprising:
[0142] S1310: Detecting a preset operation based on the session panel;
[0143] S1320: In response to the preset operation, determining a first page associated with the preset operation;
[0144] S1330: In response to the beautification operation being irrelevant to the first presentation template, determining to execute the second operation;
[0145] S1340: In response to the beautification operation being related to the first presentation template, determining the first operation or the second operation to be performed according to the type of the first presentation template.
[0146] For example, if the setting items involved in the beautification operation are not related to the first presentation template, it can be considered that the beautification operation is a personalized operation for the first page, and the personalized style setting of the first page is performed, thereby achieving style alienation of multiple pages of the presentation file.
[0147] For example, if the setting items involved in the beautification operation are not related to the first presentation template, it can be considered that the beautification operation can be an overall beautification operation for the first page, performing style assimilation of multiple pages in the presentation file where the first page is located. For example, according to the beautified first page, the corresponding setting items of other pages in the presentation file are set.
[0148] In one embodiment, after the second operation is performed, the generated template corresponding to the first page is added to the first presentation template.
[0149] If the beautification operation on the first page involves the first presentation template, the beautification operation on the first page can be directly assimilated to other pages in the presentation file.
[0150] If the beautification operation on the first page involves the first presentation template, it will be determined based on the type of the first presentation template whether the beautification is directly assimilated into other pages in the presentation file, or, based on the type of the first presentation template, whether the beautification needs to be assimilated into other pages in the presentation file, or assimilated into other pages in the presentation file with differentiation.
[0151] Wherein, when the first presentation template is a master, a suitable master is selected from multiple masters and applied to the first page. The suitable master may be a master that matches the first page in at least one of page object type, page object layout, and page object quantity.
[0152] In some embodiments, determining the first operation or the second operation to be performed according to the type of the first presentation template includes at least one of the following:
[0153] Determining that the first operation is to be performed according to that the first presentation template is a template of a single style type;
[0154] According to whether the first presentation template is a multi-style template or a gradient template, it is determined that the first operation or the second operation is to be performed.
[0155] In some embodiments, the first presentation template is a template of a single style type, and multiple pages using the first presentation template have the same style.
[0156] In some embodiments, the first presentation template itself is a template with multiple styles, and it is necessary to determine whether the style needs to be assimilated or the original style needs to be maintained based on the part of the first presentation template corresponding to the current page.
[0157] For example, the first presentation template includes multiple sub-templates, and different sub-templates are used for different parts in the same presentation file. At this time, the pages that belong to the same sub-template as the first page need to be styled, while the pages that belong to different sub-templates do not need to be styled.
[0158] For another example, if the first presentation template is a gradient type template, the styles of pages using the same presentation template are similar and different, and the style difference between adjacent pages is less than a threshold. At this time, the first page can be subjected to alienation operation, so that the first page conforms to the gradient type template after beautification; or, based on the beautification result of the first page, the style of one or more pages adjacent to the first page in the presentation file is processed.
[0159] In some embodiments, the method further comprises:
[0160] In response to the beautification operation being applied to a first portion of the first page, determining that the beautification operation is related to the first presentation template; the first portion is a portion of the first page generated according to the first presentation template in the presentation file;
[0161] or,
[0162] In response to the beautification operation being applied to a second portion of the first page, it is determined that the beautification operation is irrelevant to the first presentation template, wherein the second portion is a portion of the presentation file in the first page that is not generated according to the first presentation template.
[0163] For example, if a header or footer in a presentation file is generated based on a first presentation template, then if a beautification operation acting on the header and / or footer is detected, then the beautification operation can be considered to be related to the first presentation template. In this case, the beautification operation acts on a blank area in the presentation file, and the beautification operation can be considered to be unrelated to the first presentation template.
[0164] In short, if the presentation file area or the style used by the file content affected by the beautification operation is set according to the first presentation template, then the beautification operation can be considered to be related to the first presentation template, otherwise it is not related to the first presentation template.
[0165] In some embodiments, performing style assimilation and / or style alienation of pages in the presentation file based on the first page includes:
[0166] In response to the preset operation being a single-page creation operation or a single-page regeneration operation, acquiring style parameters of a second page of the presentation file, wherein the second page is associated with the first page;
[0167] According to the style parameters, style assimilation between different pages in the presentation file is achieved when the first page is created or regenerated.
[0168] In some embodiments, the second page may be a page adjacent to the first page in the presentation file. Exemplarily, the second page may be a previous page and / or a subsequent page of the first page in the presentation file.
[0169] In some embodiments, the second page may be n pages adjacent to the first page in the presentation file. Exemplarily, the second page may be the first n pages and / or the last n pages of the first page in the presentation file.
[0170] In some other embodiments, the second page may be a page belonging to the same section of the presentation file as the first page, or a different page belonging to the same subheading.
[0171] In some embodiments, the second page may be a page of the same type as that in the presentation file, for example, the types may include: home page, directory page, navigation page, end page, text page, etc.
[0172] Since the preset operation is a rebuild operation or a single-page regeneration operation, the style of the first page can be automatically processed according to the style parameters of the second page of the presentation file, thereby requiring no additional operation by the user.
[0173] In some embodiments, the assimilation of styles between different pages in the presentation file when creating or regenerating the first page according to the style parameter includes:
[0174] In response to the preset operation being the single page creation operation or the single page regeneration operation, constructing a first prompt instruction according to the operation parameters of the preset operation;
[0175] Based on the first prompt instruction and the first model, generating an initial page of the first page;
[0176] The initial page is set according to the style parameters to generate the first page having the same style as the second page, so as to achieve style assimilation between different pages in the presentation file.
[0177] In some embodiments, when performing initial page settings, the initial style of the presentation file can be set according to an artificial intelligence (AI) model or a machine learning (ML) model.
[0178] In other embodiments, when performing initial page settings, the initial style of the presentation file may be set according to user instructions, or, when no user instructions are detected, a default presentation template may be selected to set the initial style of the presentation file.
[0179] In this embodiment, the first model may be an artificial intelligence (AI) model or a machine learning (ML) model. The first model may be a model trained with sample data.
[0180] In the embodiment of the present disclosure, the first prompt instruction is generated according to the operation parameter. Thus, when the first prompt instruction is input into the first model, the first model generates an initial page filled with content. For example, the first prompt instruction may include at least: a content summary indication of the first page. The content summary indication may be used at least by the first model to determine the content to be filled into the first page.
[0181] At this time, the generated initial page may have the same style as the second page, or a different style. For example, in one embodiment, the first model has memory, and then the newly generated or updated first page can have the style of the second page in the presentation file according to the generated memory of the presentation file. For example, in this case, the first model may include a long-short memory network, etc. The initial page is directly generated due to the memory bias of the first model or the first model does not pay attention to the style. In this way, after getting the initial page, the assimilation operation between the first page and the second page will be automatically performed, so that the first page is presented in the style of the second page.
[0182] In some embodiments, the first prompt instruction may be formed by combining one or more keywords in a preset order.
[0183] In other embodiments, the first prompt instruction may be generated by writing one or more keywords into a template having a special data structure. The keywords may include words determined according to natural language input and / or preset operations.
[0184] In some embodiments, the assimilation of styles between different pages in the presentation file when creating or regenerating the first page according to the style parameter includes:
[0185] Constructing a second prompt instruction according to the operation parameter of the preset operation and the style parameter;
[0186] Based on the second prompt instruction and the second model, the first page having the same style as the second page is generated to achieve style assimilation between different pages in the presentation file.
[0187] In some embodiments, the first model and the second model may be the same model or different models.
[0188] In the embodiment of the present disclosure, the second prompt instruction will be composed not only according to the operation parameters of the preset operation, but also according to the style parameters of the second page.
[0189] After receiving the second prompt instruction, the second model will not only automatically determine the page content of the first page, but also control the page style of the first page output by itself according to the indication part corresponding to the style parameter, thereby achieving style assimilation between the first page and the second page.
[0190] Exemplarily, the composition and generation method of the second prompt instruction are the same as or similar to those of the first prompt instruction.
[0191] In some embodiments, the second model and the first model may be the same model.
[0192] In other embodiments, the second model and the first model may be different models.
[0193] In some embodiments, the step of achieving style assimilation between different pages in the presentation file when creating or regenerating the first page according to the style parameter further includes:
[0194] comparing style differences between the first page and the second page;
[0195] In response to the style difference between the first page and the second page not meeting the style assimilation requirement, the style of the first page is adjusted according to the style difference to achieve style assimilation between different pages in the presentation file.
[0196] In this case, considering the difference in color schemes and the errors in model generation, in order to achieve style assimilation, a secondary verification is performed after the first page and the second page are generated.
[0197] The secondary verification may include: comparing the style difference between the first page and the second page to obtain a difference value.
[0198] For example, the difference in the use of color combinations between the first page and the second page is compared, and / or the difference in the use of line combinations between the first page and the second page is compared. Then, it is determined whether the difference value is within the range that can be recognized by public vision. The range can be a preset range. For example, when the style is reflected in the thickness of the line, the range can be the thickness range; for another example, when the style is reflected in the color difference, the range can be the distance range of the color in the color space (RGB). If the difference value is within the range that can be recognized by public vision, the style of the first page and / or the second page is adjusted according to the difference obtained by comparison, so as to achieve the assimilation of the style between the first page and the second page. Otherwise, the style of the first page and the second page does not need to be adjusted.
[0199] In some embodiments, the method comprises:
[0200] In response to detecting an import operation of a reference page, the style of one or more pages in the presentation file is updated according to the reference page.
[0201] In some embodiments, if a user likes a certain style, the model can learn this style by importing a reference page. The reference page can be imported in the form of a file or a single page.
[0202] In some scenarios, when multiple users jointly edit a presentation file, the style used by one of the multiple users when editing the presentation file can be determined as the target style. The page edited by the user is called the reference page. In this case, directly importing the reference page can synchronize the styles of the presentation files jointly edited by multiple users, thereby achieving rapid unification of the styles of presentation files edited by multiple users.
[0203] In some embodiments, the method further comprises:
[0204] Obtaining style changes of adjacent pages in the demonstration file;
[0205] In response to the style change not conforming to a preset rule, marking the third page of the presentation file or outputting an abnormal prompt, wherein the third page is an abnormal page that causes the style change rule of the presentation file to not conform to the preset rule.
[0206] In some embodiments, the presentation file uses a unified style template, and the corresponding preset rule may be that there should be no visually discernible obvious style differences.
[0207] In other embodiments, the presentation file uses a gradient-style template, and if the style difference between two adjacent pages does not exceed the range allowed by the gradient, it can be considered to comply with the preset rule.
[0208] In some other embodiments, different styles are used for parts of the presentation file with relatively large content changes. If the style changes of adjacent pages in the same part cannot exceed the visually perceptible range, it can be considered to comply with the preset rules. If the grids of two adjacent pages in different parts comply with the styles of their respective parts, it can be considered to comply with the preset rules. Otherwise, it can be considered not to comply with the preset rules.
[0209] In the embodiment of the present disclosure, the user is prompted whether the style assimilation of the page is required by outputting a mark or abnormal prompt information of the third page.
[0210] In some embodiments, obtaining the style changes of adjacent pages in the presentation file includes:
[0211] Inputting the presentation file into a third model to obtain style features of each page of the presentation file, and determining style changes of adjacent pages in the presentation file based on the style features;
[0212] or,
[0213] The setting values of the style setting items of each page in the demonstration file are extracted, and the setting values are input into the fourth model to obtain the style changes of adjacent pages in the demonstration file output by the fourth model.
[0214] In some embodiments, after the generation or update of the presentation file is completed, the presentation file as a whole is input into the third model, and the third model extracts the style features of each page one by one, and determines the style changes between adjacent pages based on the style features. In this implementation, the presentation file is directly input into the third model without data processing, etc., and the operation is simple. This method is suitable for determining the style change locally in the electronic device.
[0215] In other embodiments, the presentation file may have style setting items, and the setting values of these style setting items determine the style of the presentation file. Therefore, in the disclosed embodiment, the setting values can be extracted and submitted to the fourth model, and then the fourth model can obtain the style changes of adjacent pages of the presentation file.
[0216] Exemplarily, each page is set corresponding to the setting value to obtain a prompt word for a page, and the prompt words of each page in the demonstration file are merged and input into the fourth model. The fourth model outputs the style changes of adjacent pages.
[0217] In summary, there are many ways to determine the style change of adjacent pages, and the specific implementation is not limited to any of the above methods.
[0218] In some embodiments, the method further comprises:
[0219] In response to the style change not matching the content change between the corresponding adjacent pages, determining that the style change does not conform to a preset rule;
[0220] or,
[0221] In response to the style change not matching any of the one or more preset second presentation templates, it is determined that the style change does not conform to a preset rule.
[0222] The contents of different pages in the same presentation file are related, or the contents of different pages have transitions.
[0223] In the disclosed embodiment, if the presentation file does not use a template of a unified style, the style change does not match the content change, which means that the style change of the adjacent pages does not conform to the preset rule.
[0224] For example, if two adjacent pages have content continuity, the styles of the two adjacent pages should be the same or have related changes.
[0225] For another example, if the contents of two adjacent pages do not have continuity but have transitions, then the styles of the two adjacent pages will be different.
[0226] In the disclosed embodiment, the fourth model determines whether the style change of two adjacent pages conforms to a preset rule according to the matching of content and style.
[0227] In some other embodiments, the style rule of the preset presentation template is the aforementioned preset rule.
[0228] In some embodiments, the styles of different pages of the presentation file are directly matched with a preset presentation template. If they match, it means that the style changes of two adjacent pages in the presentation file conform to a preset rule. Otherwise, it can be considered that they do not conform to the preset rule.
[0229] In short, there are many ways to obtain the style changes of adjacent pages in a demonstration file, and the specific implementation is not limited to any of the above methods.
[0230] In some embodiments, before detecting a preset operation acting on the session panel, the method further includes:
[0231] Based on the natural language input received by the conversation panel from the user interface (UI), a third prompt instruction is constructed; and according to the third prompt instruction, the presentation file is generated.
[0232] After the third prompt instruction is input into the AI / ML model, the AI / ML model outputs a demonstration file.
[0233] In this way, users can easily generate presentation files through natural language.
[0234] Exemplarily, the natural language input may roughly indicate the content theme of the presentation file, and the AI / ML model may automatically retrieve or generate the content of the presentation file according to a third prompt instruction describing the natural language input, and generate the presentation file according to the file structure of the presentation file.
[0235] In some embodiments, before detecting a preset operation acting on the session panel, the method further includes:
[0236] Determine the account associated with the demonstration file.
[0237] The step of constructing a third prompt instruction based on the natural language input received by the conversation panel from the user interface (UI) includes:
[0238] Constructing a third prompt instruction according to the account information of the associated account and the natural language;
[0239] The demonstration file is generated according to the third prompt instruction.
[0240] The account information of the associated account may include but is not limited to at least one of the following:
[0241] Preference information for associated accounts;
[0242] User attribute information of the associated account.
[0243] The user attribute information may include but is not limited to at least one of the following:
[0244] User age;
[0245] User's gender;
[0246] User education level;
[0247] The industry in which the user works.
[0248] For example, based on the user's age and gender, it can be inferred that young men may like metallic styles, and young women may like pink styles.
[0249] The preference information of the associated account may include at least one of the following:
[0250] The editing account of the presentation file;
[0251] Demo file creation account;
[0252] Login account of the client that opens the demo file;
[0253] Specify an account. For example, if user A wants to edit his presentation file in the style that user B likes, he can specify account B.
[0254] The management account of the presentation file, the account level of the management account may include: the creation account of the presentation file and / or the upper level or multiple levels of accounts of the creation account.
[0255] The preference information may include but is not limited to at least one of the following:
[0256] The associated accounts are marked with the style they like to use;
[0257] The most frequently used presentation templates by the associated accounts;
[0258] The style that the associated account does not like;
[0259] The associated account does not use style;
[0260] Demo templates that have not been used by the associated account.
[0261] In some embodiments, if the electronic device starts an editing application for a presentation file but does not log in using an account, the associated account may include the account that is most frequently used by the editing application.
[0262] In this way, based on the account information of the associated account, a presentation file with the personal characteristics or preferences of the associated account will be generated, thereby realizing personalized AI / ML generation of the presentation file.
[0263] like Figure 5 As shown, an embodiment of the present disclosure provides a presentation file processing device, the device comprising:
[0264] A detection module 110, configured to detect a preset operation based on a conversation panel;
[0265] A determination module 120, configured to determine, in response to the preset operation, a first page associated with the preset operation;
[0266] The execution module 130 is used to execute style assimilation and / or style alienation between different pages in the presentation file based on the first page.
[0267] The presentation file processing device may be an electronic device. In some embodiments, the detection module 110, the determination module 120 and the execution module 130 may be program modules, which can implement the above operations after being executed by a processor.
[0268] In other embodiments, the detection module 110, determination module 120 and execution module 130 may be a combination of soft and hard modules, which include but are not limited to programmable arrays; the programmable arrays include but are not limited to field programmable arrays and / or complex programmable arrays.
[0269] In some other embodiments, the detection module 110, the determination module 120 and the execution module 130 may be pure hardware modules, which include but are not limited to application-specific integrated circuits.
[0270] In some embodiments, the execution module 130 is configured to determine the style operation to be performed according to the operation type of the preset operation, wherein the style operation to be performed includes: implementing the first operation of the style assimilation and / or implementing the second operation of the style alienation; based on the first page, performing style assimilation and / or style alienation between different pages in the presentation file.
[0271] In some embodiments, the execution module 130 is configured to, in response to the preset operation being a single-page creation operation or a single-page regeneration operation, determine that the style operation to be executed is the first operation; wherein the single-page creation operation is used to create the first page of the presentation file; the single-page regeneration operation is used to regenerate the first page of the presentation file; or, in response to the preset operation being a beautification operation, determine the style operation to be executed based on whether the beautification operation is related to the first presentation template; the first page is the page to be beautified in the presentation file; or, in response to the preset operation being a personalized operation for the first page, determine to execute the second operation.
[0272] In some embodiments, the execution module 130 is configured to execute at least one of the following:
[0273] In response to the beautification operation being irrelevant to the first presentation template, determining that the second operation is to be performed;
[0274] In response to the beautification operation being related to the first presentation template, it is determined whether the first operation or the second operation is to be performed according to the type of the first presentation template.
[0275] In some embodiments, the execution module 130 is configured to execute at least one of the following:
[0276] Determining that the first operation is to be performed according to that the first presentation template is a template of a single style type;
[0277] According to whether the first presentation template is a multi-style template or a gradient template, it is determined that the first operation or the second operation is to be performed.
[0278] In some embodiments, the execution module 130 is further configured to determine that the beautification operation is related to the first presentation template in response to the beautification operation being applied to a first part of the first page; the first part is the part of the first page generated according to the first presentation template in the presentation file; or, in response to the beautification operation being applied to a second part of the first page, determine that the beautification operation is not related to the first presentation template, wherein the second part is the part of the first page in the presentation file that is not generated according to the first presentation template.
[0279] In some embodiments, the execution module 130 is configured to obtain style parameters of a second page of the presentation file in response to the preset operation being a single page creation operation or a single page regeneration operation, wherein the second page is associated with the first page; and based on the style parameters, achieve style assimilation between different pages in the presentation file when creating or regenerating the first page.
[0280] In some embodiments, the execution module 130 is configured to, in response to the preset operation being the single page creation operation or the single page regeneration operation, construct a first prompt instruction according to the operation parameters of the preset operation; generate an initial page of the first page based on the first prompt instruction and the first model; set the initial page according to the style parameters to generate the first page having the same style as the second page, so as to achieve style assimilation between different pages in the presentation file.
[0281] In some embodiments, the execution module 130 is configured to construct a second prompt instruction according to the operation parameters of the preset operation and the style parameters; based on the second prompt instruction and the second model, generate the first page having the same style as the second page to achieve style assimilation between different pages in the presentation file.
[0282] In some embodiments, the execution module 130 is configured to compare the style differences between the first page and the second page; in response to the style differences between the first page and the second page not meeting the style assimilation requirements, the style of the first page is adjusted according to the style differences to achieve style assimilation between different pages in the presentation file.
[0283] In some embodiments, the execution module 130 is configured to update the style of one or more pages in the presentation file according to the reference page in response to detecting an import operation of the reference page.
[0284] In some embodiments, the apparatus further comprises:
[0285] An acquisition module, configured to acquire style changes of adjacent pages in the presentation file;
[0286] The marking module is configured to mark the third page of the presentation file or output an abnormal prompt in response to the style change not conforming to the preset rule, wherein the third page is an abnormal page that causes the style change rule of the presentation file to not conform to the preset rule.
[0287] In some embodiments, the acquisition module is configured to input the presentation file into a third model, obtain style features of each page of the presentation file, and determine style changes of adjacent pages in the presentation file based on the style features; or, extract setting values of style setting items of each page in the presentation file, input the setting values into a fourth model, and obtain style changes of adjacent pages in the presentation file output by the fourth model.
[0288] In some embodiments, the execution module 130 is further configured to determine that the style change does not conform to a preset rule in response to the mismatch between the style change and the content change between the corresponding adjacent pages; or, in response to the mismatch between the style change and one or more preset second presentation templates, determine that the style change does not conform to a preset rule.
[0289] In some embodiments, before detecting a preset operation acting on the session panel, the execution module 130 is also configured to determine an associated account of the presentation file; construct a third prompt instruction based on the account information of the associated account and natural language input; and generate the presentation file based on the third prompt instruction.
[0290] In some embodiments, the execution module 130 is configured to generate an outline of the presentation file based on the natural language and the fifth model; generate the presentation file based on the outline and the preference information; wherein the outline is used to determine the file content of the presentation file; and the preference information is used to determine the initial style of the presentation file.
[0291] An embodiment of the present disclosure further provides an electronic device, including:
[0292] processor;
[0293] a memory for storing processor-executable instructions;
[0294] The processor is configured to implement the demonstration file processing method of any embodiment of the present disclosure when running the executable instructions.
[0295] The electronic device can at least be a server and / or a terminal. One or more servers can constitute a service end.
[0296] The memory may include various types of storage media, which are non-transitory computer storage media that can continue to remember information stored thereon after the communication device loses power.
[0297] The processor can be connected to the memory through a bus or the like to read the executable program stored in the memory, for example, to implement the following Figure 1 , Figure 3 as well as Figure 4 Any of the demonstration file processing methods shown.
[0298] The embodiments of the present disclosure further provide a computer-readable storage medium, wherein the computer-readable storage medium stores an executable program, wherein when the executable program is executed by a processor, the method for processing a presentation file of any embodiment of the present disclosure is implemented. Figure 1 , Figure 3 as well as Figure 4Any of the demonstration file processing methods shown.
[0299] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0300] The embodiment of the present disclosure provides an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: when running the executable instructions, implement the method for processing a presentation file provided by any of the above technical solutions, for example, to implement the following Figures 1 to 3 Any of the demonstration file processing methods shown.
[0301] The electronic device may be the aforementioned first client, second client and / or server.
[0302] like Figure 6 As shown, an embodiment of the present disclosure shows a structure of an electronic device. For example, the electronic device 900 can be provided as a terminal and / or a server having a client installed therein. Figure 6 The electronic device 900 includes a processing component 922, which further includes one or more processors, and a memory resource represented by a memory 932 for storing instructions executable by the processing component 922, such as an application. The application stored in the memory 932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 922 is configured as an executable program to perform any of the aforementioned methods for applying to the access device, for example, to implement the following method: Figure 1 , Figure 3 as well as Figure 4 Any of the demonstration file processing methods shown.
[0303] The electronic device 900 may also include a power supply component 926 configured to perform power management of the electronic device 900, a wired or wireless network interface 950 configured to connect the electronic device 900 to a network, and an input / output (I / O) interface 958. The electronic device 900 may operate based on an operating system stored in the memory 932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
[0304] In an exemplary embodiment, an embodiment of the present disclosure provides a computer-readable storage medium, which stores an executable program, wherein the executable program, when executed by a processor, implements the presentation file processing method provided by any of the aforementioned technical solutions.
[0305] The computer-readable storage medium may specifically be: a non-temporary computer-readable storage medium.
[0306] Exemplarily, for example, the memory 932 includes an executable program, and the above instructions can be executed by the processing component 922 of the electronic device 900 to complete the above method.
[0307] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0308] Those skilled in the art will readily appreciate other implementations of the disclosed embodiments after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosed embodiments, which follow the general principles of the disclosed embodiments and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the disclosed embodiments are indicated by the following claims.
[0309] It should be understood that the embodiments of the present disclosure are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present disclosure is limited only by the appended claims.
Claims
1. A method for processing a presentation file, characterized in that: The method comprises: Detect preset actions based on session panels; In response to the preset operation, determining a first page associated with the preset operation; Based on the first page, style assimilation and / or style divergence between different pages in the presentation file is performed.
2. The method according to claim 1, characterized in that The performing of style assimilation and / or style alienation between different pages in the presentation file based on the first page includes: Determining the style operation to be performed according to the operation type of the preset operation, wherein the style operation to be performed includes: a first operation to implement the style assimilation and / or a second operation to implement the style alienation; Based on the first page, the style assimilation and / or style alienation of the pages in the presentation file is performed.
3. The method according to claim 2, characterized in that The step of determining the style operation to be performed according to the operation type of the preset operation includes: In response to the preset operation being a single-page creation operation or a single-page regeneration operation, determining that the style operation to be executed is the first operation; wherein the single-page creation operation is used to create the first page of the presentation file; and the single-page regeneration operation is used to regenerate the first page of the presentation file; or, In response to the preset operation being a beautification operation, determining the style operation to be performed according to whether the beautification operation is related to a first presentation template; the first page is a page to be beautified in the presentation file; or, In response to the preset operation being a personalized operation for the first page, determining to execute the second operation.
4. The method according to claim 3, characterized in that The step of determining the style operation to be performed according to whether the beautification operation is related to the first presentation template includes at least one of the following: In response to the beautification operation being irrelevant to the first presentation template, determining that the second operation is to be performed; In response to the beautification operation being related to the first presentation template, it is determined whether the first operation or the second operation is to be performed according to the type of the first presentation template.
5. The method according to claim 4, characterized in that The determining, according to the type of the first presentation template, the first operation or the second operation to be performed, comprises at least one of the following: Determining that the first operation is to be performed according to that the first presentation template is a template of a single style type; According to whether the first presentation template is a multi-style template or a gradient template, it is determined that the first operation or the second operation is to be performed.
6. The method according to claim 4, characterized in that The method further comprises: In response to the beautification operation being applied to a first portion of the first page, determining that the beautification operation is related to the first presentation template; the first portion is a portion of the first page generated according to the first presentation template in the presentation file; or, In response to the beautification operation being applied to a second portion of the first page, it is determined that the beautification operation is irrelevant to the first presentation template, wherein the second portion is a portion of the presentation file in the first page that is not generated according to the first presentation template.
7. The method according to claim 4, characterized in that The performing of the style assimilation and / or style alienation of the pages in the presentation file based on the first page includes: In response to the preset operation being a single-page creation operation or a single-page regeneration operation, acquiring style parameters of a second page of the presentation file, wherein the second page is associated with the first page; According to the style parameters, style assimilation between different pages in the presentation file is achieved when the first page is created or regenerated.
8. The method according to claim 7, characterized in that The step of achieving style assimilation between different pages in the presentation file when creating or regenerating the first page according to the style parameter includes: In response to the preset operation being the single page creation operation or the single page regeneration operation, constructing a first prompt instruction according to the operation parameters of the preset operation; Based on the first prompt instruction and the first model, generating an initial page of the first page; The initial page is set according to the style parameters to generate the first page having the same style as the second page, so as to achieve style assimilation between different pages in the presentation file.
9. The method according to claim 7, characterized in that: The step of achieving style assimilation between different pages in the presentation file when creating or regenerating the first page according to the style parameter includes: Constructing a second prompt instruction according to the operation parameter of the preset operation and the style parameter; Based on the second prompt instruction and the second model, the first page having the same style as the second page is generated to achieve style assimilation between different pages in the presentation file.
10. The method according to claim 9, characterized in that The step of achieving style assimilation between different pages in the presentation file when creating or regenerating the first page according to the style parameter further includes: comparing style differences between the first page and the second page; In response to the style difference between the first page and the second page not meeting the style assimilation requirement, the style of the first page is adjusted according to the style difference to achieve style assimilation between different pages in the presentation file.
11. The method according to any one of claims 1 to 10, characterized in that: The method comprises: In response to detecting an import operation of a reference page, the style of one or more pages in the presentation file is updated according to the reference page.
12. The method according to any one of claims 1 to 11, characterized in that: The method further comprises: Obtaining style changes of adjacent pages in the demonstration file; In response to the style change not conforming to a preset rule, marking the third page of the presentation file or outputting an abnormal prompt, wherein the third page is an abnormal page that causes the style change rule of the presentation file to not conform to the preset rule.
13. The method according to claim 12, characterized in that The obtaining of style changes of adjacent pages in the demonstration file includes: Inputting the presentation file into a third model to obtain style features of each page of the presentation file, and determining style changes of adjacent pages in the presentation file based on the style features; or, The setting values of the style setting items of each page in the demonstration file are extracted, and the setting values are input into the fourth model to obtain the style changes of adjacent pages in the demonstration file output by the fourth model.
14. The method according to claim 12, characterized in that The method further comprises: In response to the style change not matching the content change between the corresponding adjacent pages, determining that the style change does not conform to a preset rule; or, In response to the style change not matching any of the one or more preset second presentation templates, it is determined that the style change does not conform to a preset rule.
15. The method according to claim 12, characterized in that Before detecting the preset operation based on the session panel, the method further includes: Determine an account associated with the demonstration file; Constructing a third prompt instruction according to the account information of the associated account and the natural language input; The demonstration file is generated according to the third prompt instruction.
16. The method according to claim 15, characterized in that The constructing a third prompt instruction according to the account information and natural language of the associated account includes: Generate an outline of the presentation file according to the natural language and the fifth model; Generate the presentation file according to the outline and the preference information; wherein the outline is used to determine the file content of the presentation file; The preference information is used to determine the initial style of the presentation file.
17. A presentation file processing device, characterized in that: The device comprises: A detection module, used for detecting preset operations based on the session panel; A determination module, configured to determine, in response to the preset operation, a first page associated with the preset operation; The execution module is used to execute style assimilation and / or style alienation between different pages in the presentation file based on the first page.
18. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the presentation file processing method described in any one of claims 1 to 16 when running the executable instructions.
19. A computer-readable storage medium, characterized in that: The readable storage medium stores an executable program, wherein the executable program, when executed by a processor, implements the presentation file processing method according to any one of claims 1 to 16.
Citation Information
Cited By
File processing method and device and related product
CN121387830A