Generative content display method and device, storage medium and program product
By identifying the user's attention objects in the display interface and dynamically adjusting the display method of generated content, the problem of how to optimize the display of generated content is solved, and the user's smooth and clear interface experience in various information scenarios is achieved.
Patent Information
- Application Number
- CN202411652048.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-04-18
AI Technical Summary
When displaying generated content and other displayed content at the same time in the display interface, how to optimize the display process of generated content to ensure that the user's browsing experience is smooth and clear.
By identifying the user's attention in the display interface, dynamically adjust the display method of generated content. If the user focuses on the generated content, the target area gradually expands to accommodate the gradually displayed generated content; if the user focuses on other displayed content, the displayed partially of the generated content is gradually hidden in the target area to display the remaining partially generated content to be displayed.
It realizes dynamic adjustment of the display method of generated content, ensuring that users enjoy a smooth and clear interface experience when paying attention to different types of information, reduces visual interference, and effectively balances the relationship between generated content and other displayed content.
Smart Images

Figure CN119847376A_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of computer software technology, and in particular, to a method for displaying generated content, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0002] Generative content refers to content created using generative models. Generative models are able to learn underlying patterns and structures based on a given dataset and generate new, never-before-seen data instances. Generative content can be applied to multiple fields, including but not limited to the generation of images, audio, text, and video.
[0003] With the development of artificial intelligence technology, the application of generative content has become increasingly widespread. After obtaining the generative content created by the generative model, how to optimize the display process of the generative content is a further concern. Summary of the invention
[0004] In view of this, one or more embodiments of the present specification provide a method for displaying generated content, an electronic device, a computer-readable storage medium, and a computer program product.
[0005] To achieve the above objectives, one or more embodiments of this specification provide the following technical solutions:
[0006] According to a first aspect of one or more embodiments of this specification, a method for displaying generated content is provided, including:
[0007] Identifying an object of interest of a user in a display interface; wherein the display interface is used to display the generated content and at least one other display content; the display interface includes a target area for displaying the generated content;
[0008] If the object of interest is the generated content, displaying the generated content in a first display mode, wherein the first display mode indicates that the target area is gradually enlarged to accommodate the generated content that is gradually displayed;
[0009] If the object of interest is the other display content, the generated content is displayed in a second display mode, and the second display mode indicates that a displayed portion of the generated content is gradually hidden in the target area to display a remaining portion of the generated content to be displayed.
[0010] According to a second aspect of an embodiment of this specification, a method for displaying generated content is provided, including:
[0011] Displaying a display interface for displaying the generated content and at least one other display content, the display interface including a target area for displaying the generated content;
[0012] If the object of interest of the user in the display interface is the generated content, displaying the generated content in a first display mode, wherein the first display mode indicates that the target area is gradually expanded to accommodate the generated content that is gradually displayed;
[0013] If the user's focus in the display interface is the other display content, the generated content is displayed in a second display mode, and the second display mode indicates that the displayed part of the generated content is gradually hidden in the target area to display the remaining part of the generated content to be displayed.
[0014] According to a third aspect of the embodiments of this specification, there is provided an electronic device, including:
[0015] processor;
[0016] a memory for storing processor-executable instructions;
[0017] When the processor executes the executable instructions, it is used to implement the method described in the first aspect or the second aspect.
[0018] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.
[0019] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including a computer program, which implements the steps of the method described in the first aspect or the second aspect when executed by a processor.
[0020] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:
[0021] In the embodiments of this specification, the display mode of the generated content is dynamically adjusted by identifying the user's attention object in the display interface; when the user pays attention to the generated content, the generated content is displayed in the first display mode, that is, the target area for displaying the generated content is gradually expanded to accommodate the gradually displayed generated content, so that the user can focus more on the information currently being read and reduce visual interference. When the user pays attention to other displayed content, the generated content is displayed in the second display mode, and only the displayed part of the generated content is gradually hidden in the existing target area, and the remaining part of the generated content to be displayed is displayed. The target area will not be expanded, which means that the display of the generated content will not interfere with the visibility of other content, thereby effectively balancing the relationship between the generated content and other displayed content, so that the user can enjoy a smooth and clear interface experience when paying attention to different types of information.
[0022] 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 specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a schematic diagram of the architecture of a generative content display service system provided by an exemplary embodiment.
[0024] Figure 2 The present invention is a flowchart of a method for displaying generative content provided by an exemplary embodiment.
[0025] Figure 3 It is a schematic diagram of displaying generated content in a first display mode provided by an exemplary embodiment.
[0026] Figure 4 It is a schematic diagram of displaying generated content in a second display mode provided by an exemplary embodiment.
[0027] Figure 5 It is a flowchart of another method for displaying generated content provided by an exemplary embodiment.
[0028] Figure 6 It is a schematic structural diagram of an electronic device provided by an exemplary embodiment. DETAILED DESCRIPTION
[0029] 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, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0030] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0031] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this manual are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0032] Generative content refers to content created using generative models. Generative models are able to learn underlying patterns and structures based on a given dataset and generate new, never-before-seen data instances. Generative content can be applied to multiple fields, including but not limited to the generation of images, audio, text, and video.
[0033] For example, in the field of text generation, it can be text generation in natural language processing, such as machine writing, chatbots, automatic summarization, etc. Or creative writing assistance, such as poetry and story generation. But it is not limited to this.
[0034] For example, in the field of image generation, it can be to generate new images, such as faces, landscapes, etc. Or style transfer, applying one artistic style to another image. But it is not limited to this.
[0035] For example, in the field of audio generation, it can be music generation, creating new musical works or accompaniments, or speech synthesis, generating realistic human speech. But it is not limited to this.
[0036] With the development of artificial intelligence technology, the application of generative content has become increasingly widespread. After obtaining the generative content created by the generative model, how to optimize the display process of the generative content is a further issue of concern. For example, in a scenario where the display interface can display generative content and other display content at the same time, it is necessary to consider the display issues of both the generative content and the other display content to optimize the user's browsing experience.
[0037] Based on this, an embodiment of this specification provides a method for displaying generative content, which determines the display mode of generative content in the display interface by identifying the user's focus object in the display interface, thereby realizing a display process that effectively takes into account both the display of generative content and other display content.
[0038] Figure 1 FIG. 1 is a schematic diagram of the architecture of a display service system for generative content provided by an exemplary embodiment. Figure 1 As shown, the system may include a server 11, a network 12, and several terminals, including but not limited to a PC (Personal Computer) 13, a mobile phone 14, and the like.
[0039] The server 11 may be a physical server including an independent host, or the server 11 may be a virtual server carried by a host cluster. During operation, the server 11 may run a server-side program of an application to implement the relevant functions of the application. For example, when the server 11 runs a display service program, it may be implemented as a corresponding display server.
[0040] PC13 and mobile phone 14 are only some types of terminals that can be used by users. In fact, users can obviously also use terminals such as tablet devices, laptops, PDAs (Personal Digital Assistants), wearable devices (such as smart glasses, smart watches, etc.), etc., and one or more embodiments of this specification do not limit this. During operation, the terminal can run a program on the client side of a certain application to implement the relevant functions of the application. For example, when the terminal runs a program for a display service, it can be implemented as a client of the display service. Among them, the application program of the client of the above-mentioned display service can be started and run on the terminal. The program on the client side can be a native application installed on the terminal, or the program on the client side can be a small program, a quick application or other similar forms. Of course, when using web page technologies such as HTML5 or similar, the relevant functions can be implemented through the page displayed by the browser. The browser here can be an independent browser application or a browser module embedded in certain applications.
[0041] As for the network 12 for interaction between terminals such as PC 13 and mobile phone 14 and server 11, it is possible to select a wired or wireless network to achieve communication based on the communication mode supported by the corresponding terminal, and this specification does not limit this. For example, PC 13 can support both wired and wireless communication, so it can use a wired or wireless network to achieve communication as needed, while mobile phone 14 usually only supports wireless communication, so it can use a wireless network to achieve communication.
[0042] The method for displaying generated content provided in the embodiment of this specification may be executed by the server 11 or by a terminal held by a user, and this embodiment does not impose any limitation on this.
[0043] In an exemplary application scenario, taking a search scenario as an example, a user may enter a search term in an input box provided by a terminal through any input method, for example, a user may enter "how to make pasta". This input may be completed through keyboard input, voice recognition or other input methods. After receiving the user's search term, the terminal may generate a user search instruction based on the search term and send it to the server.
[0044] A pre-trained generative model is deployed on the server. After receiving the user's search instruction, the server can perform the following two operations:
[0045] First, the server can input the search terms indicated by the user's search instructions into a pre-trained generative model, and the generative model will generate relevant answers based on the search terms, that is, generative content. For example, for "how to make pasta", the generative model may generate a description of the method of making pasta, including the required materials, steps and tips. The advantage of the generative model is that it can provide personalized, context-related answers, improving the efficiency of users in obtaining information.
[0046] Secondly, the server can query and obtain at least one search item related to the search term from a preset database. This database includes several search items, including but not limited to images, audio, text, and video. For example, this database may contain multiple search items, such as recipes, video tutorials, and related articles. The query results can be based on algorithms such as keyword matching and similarity analysis to ensure that at least one search item related to the user's needs is queried.
[0047] After completing the above two operations, the server packages the generated content and the search terms and returns them to the terminal. For example, the response may contain: (1) Generated content: a detailed description of how to make pasta. (2) Search terms: related recipe links, video tutorials, or user reviews, etc.
[0048] Finally, the server returns the generated content and the at least one search item to the terminal, so that the generated content and the at least one search item are displayed on a display interface of the terminal.
[0049] After receiving the response from the server, the terminal presents the generated content and search terms on the terminal's display interface. This information can be displayed in the form of text, links, or a combination of text and images, making it easy for users to browse and obtain information. In this search scenario, users can not only get quick and accurate answers, but also see related search terms, thereby obtaining rich information in one search. This combination of generated content and database query improves the intelligence of the search engine and the user experience.
[0050] Of course, in addition to the above-mentioned search scenarios, there are other scenarios in which the generated content and other display content can be displayed together in the display interface.
[0051] For example, in the field of customer support, generative content and other display content can be displayed in the chat display interface. For example, generative content is a detailed answer generated by the generative model based on the user's inquiry, such as product instructions, troubleshooting steps, etc. Other display content is solutions to common problems or related documents found in the knowledge base to provide more accurate information.
[0052] For example, in the field of news recommendation, generative content and other display content can be displayed in the display interface. For example, generative content is a brief news summary generated by the generative model based on user input. Other display content is the latest related reports and article links obtained from the news database.
[0053] See also Figure 2 , a flow chart of a method for displaying generated content is shown, and the method is applied to a terminal for exemplary description, the method comprising:
[0054] In S201, an object of interest of a user in a display interface is identified; wherein the display interface is used to display generative content and at least one other display content; and the display interface includes a target area for displaying the generative content.
[0055] In this step, the terminal may collect the interaction behavior between the user and itself, and identify the object of interest of the user in the display interface by analyzing the interaction behavior.
[0056] In S202, if the object of interest is generative content, the generative content is displayed in a first display mode, and the first display mode indicates that the target area is gradually enlarged to accommodate the gradually displayed generative content.
[0057] In this step, when the terminal recognizes that the user is paying attention to the generated content, the target area will gradually expand to accommodate the content being dynamically generated. At this time, the generated content will be presented in a gradually revealed manner to ensure that the user can clearly see the new content. The gradually expanding target area makes the presentation of the generated content smoother, and the user will not feel confused or uncomfortable due to the sudden increase in content. In addition, by expanding the target area of the generated content, the user can focus more on the information currently being read and reduce visual interference.
[0058] For example, see Figure 3, the display interface also includes other areas for displaying other display content; the first display mode indicates that the target area gradually extends and expands in the direction of other areas to accommodate the gradually displayed generative content, and other areas shrink synchronously during the expansion of the target area. Through the expansion of the target area and the contraction of other areas, it is ensured that the gradual display of generative content will not cause congestion in the interface, and the overall visual fluency is improved. When users focus on generative content, they can see more relevant information without being distracted by other content, making the reading experience more focused and in-depth; this dynamic adjustment mechanism not only makes the display of generative content smoother, but also improves the usability of the interface and the overall user experience through effective space management. Users can get clear and undisturbed visual effects when focusing on generative content.
[0059] In S203, if the object of interest is other display content, the generative content is displayed in a second display mode, and the second display mode indicates that part of the generative content that has been displayed is gradually hidden in the target area to display the remaining part of the generative content to be displayed.
[0060] In this step, if the user's focus turns to other displayed content, the terminal will adjust the display mode of the generated content, and the target area for displaying the generated content will not be expanded, which means that the display of the generated content will not interfere with the visibility of other content. By hiding the displayed generated content, users can focus more clearly on other important information, reduce information overlap and confusion, and improve the efficiency of information acquisition.
[0061] Exemplarily, during the process of displaying the generated content in the second display mode, the display size of the target area and the display sizes of other areas for displaying other display content remain unchanged; or, the display size of the target area gradually decreases, and the display sizes of other areas for displaying other display content gradually increase synchronously. For example, see Figure 4 , showing that with the user operation (such as the user swiping up in the display interface), the user's focus (or object of attention) is other display content, the terminal displays the generated content in the second display mode, and the target area for displaying the generated content is reduced, while other areas for displaying other display content are expanded synchronously.
[0062] In this embodiment, by identifying the user's attention object in the display interface, the display mode of the generated content is dynamically adjusted. When the user pays attention to the generated content, the target area of the generated content is expanded, so that the user can focus more on the information currently being read and reduce visual interference. When the user pays attention to other displayed content, the target area for displaying the generated content will not be expanded, which means that the display of the generated content will not interfere with the visibility of other content. The relationship between the generated content and other displayed content is effectively balanced, so that users can enjoy a smooth and clear interface experience when paying attention to different types of information.
[0063] In some embodiments, the object of interest of the user in the display interface is determined based on an analysis of the interaction behavior between the user and the terminal where the display interface is located.
[0064] In the first possible implementation, the terminal can start timing when the generated content starts to be displayed in the display interface. If no user operation is detected within the preset time, and the object of attention is determined to be generated content, the generated content is displayed in the first display mode. This method relies on the user's silent state to determine their focus. The user does not need to take the initiative to operate, and the terminal can automatically determine the content they are concerned about, providing a more seamless experience. If the user is watching the content without operating, the terminal can adjust the displayed content in time to ensure that the user sees more relevant information instead of waiting passively; by automatically determining the object of attention, the user does not need to think about how to operate, but only needs to focus on the content itself.
[0065] In this case, the terminal may gradually display the remaining generated content to be displayed at a preset speed while displaying the generated content in the first display mode. The preset speed may be specifically set according to the actual application scenario, and this embodiment does not impose any limitation on this.
[0066] In a second possible implementation, when the terminal displays the generated content in the display interface, if the first sliding gesture is detected and the sliding acceleration of the first sliding gesture does not exceed the preset threshold, it is determined that the object of attention is the generated content, and the generated content is displayed in the first display mode. A lower sliding acceleration usually indicates that the user is reading carefully or sliding gently. The terminal can confirm that the user's focus is on the generated content, and can respond to the user's reading behavior in real time, making the generated content display more natural and smooth, and can make the user feel that the terminal is actively responding to their reading habits, improving the overall sense of interaction.
[0067] Exemplarily, the terminal includes a touch display screen, and the first sliding gesture may be a touch gesture acting on the display interface. A touch gesture refers to a sliding operation performed by a user by touching the screen. The user may use a finger to slide in different directions on the display interface (such as up, down, left, or right), and these actions will be recognized by the terminal as sliding gestures. The terminal may use a touch sensor of the touch display screen to capture the user's finger movement trajectory and speed, and then calculate the acceleration of the sliding, and determine whether the user slides gently (low acceleration) or quickly (high acceleration). In one example, see Figure 3 or Figure 4 , the target area for displaying the generated content is located in the upper half of the display interface, and the other area for displaying other display content is located in the lower half of the display interface, then the first sliding gesture may be an upward sliding gesture.
[0068] Alternatively, the first sliding gesture may also be a gesture recognized by a gesture recognition device. The gesture recognition device captures the user's gesture movements through a camera or a sensor without directly touching the screen. For example, the user can make sliding gestures in front of the display interface, and the terminal recognizes these movements through the camera and further determines information such as the sliding direction and speed. The user does not need to touch the device directly, which provides a more flexible and hygienic operation method, which is more convenient when used in public places.
[0069] In this case, the terminal may first determine the sliding speed of the first sliding gesture when displaying the generated content in the first display mode. The sliding speed may be calculated by recording the starting point and the ending point of the sliding gesture, as well as the duration of the gesture, for example, sliding speed = (end point position - starting point position) / sliding time. Then, the display speed of the remaining generated content to be displayed in the target area is determined based on the sliding speed of the first sliding gesture. For example, the display speed of the remaining generated content to be displayed in the target area is positively correlated with the sliding speed of the first sliding gesture, so that the display speed of the remaining generated content to be displayed is adapted to the user's reading speed. For example, if the user's sliding speed is 2 units / second, the display speed of the generated content may also be set to be equal to this speed or adjusted in a certain proportional relationship (such as 1:1 or 1:0.5).
[0070] By adapting the display speed of the generated content, the above solution enables users to have a smoother reading experience and avoids reading difficulties caused by too fast or too slow content display speed. When the user slides, the display of the generated content matches their reading speed, making the overall interaction more natural and intuitive, and enhancing the user's immersion. When the content display matches the user's reading rhythm, the user can better absorb information and reduce omissions or misunderstandings caused by mismatched content display speeds. This dynamic adjustment can provide each user with a personalized reading experience, adapt to the reading habits of different users, and increase user satisfaction.
[0071] In a third possible implementation, when the terminal is displaying generative content in the display interface, if a first sliding gesture is detected and the sliding acceleration of the first sliding gesture exceeds a preset threshold, it is determined that the object of attention is other displayed content. A gesture with high acceleration usually indicates that the user is sliding quickly to view other content. The terminal can quickly adapt to this change to ensure that the user can efficiently access other information of interest. By identifying high-acceleration sliding, it can be avoided that the continued expansion of the target area for displaying generative content affects the user's reading of other displayed content. When the user slides quickly, the terminal can adjust the content display in time, which helps the user quickly obtain information without causing browsing interference.
[0072] The preset threshold for comparison with the sliding acceleration may be specifically set according to the actual application scenario, and this implementation does not impose any restriction on this.
[0073] In a fourth possible implementation, during the process of displaying the generated content in the second display mode on the display interface, if the terminal detects a second sliding gesture and determines that the object of attention is the generated content, the display mode of the generated content is switched from the second display mode to the first display mode; the sliding direction of the second sliding gesture is opposite to the sliding direction of the first sliding gesture. For example, if the first sliding gesture is an upward slide, the second sliding gesture is a downward slide. The second sliding gesture opposite to the sliding direction of the first sliding gesture indicates that the user has decided to return to focus on the generated content again after reading other displayed content. This behavior may be due to the user's interest in the generated content, or they want to review a specific information. Once the terminal detects this second sliding gesture, it will switch the display mode of the generated content from the second display mode to the first display mode, so that the generated content is highlighted again, providing a larger visual area, thereby allowing users to easily refocus on the content they are interested in. This design allows users to have greater flexibility in the interface and can quickly switch between different types of information, reducing the time and effort of finding information and improving the naturalness of interaction.
[0074] It is understandable that the first sliding gesture and the second sliding gesture can simultaneously support a conventional page scrolling function, thereby improving the flexibility and fluidity of the user experience.
[0075] In a fifth possible implementation, the user's focus object in the display interface can also be identified through other interactive behaviors. In the process of displaying the generated content in the display interface, if the terminal detects that the user interaction position is in the target area, the focus object is determined to be the generated content; otherwise, the focus object is determined to be other display content.
[0076] Exemplarily, users can clearly express their focus by clicking or touching the target area for displaying generative content on the touch display screen of the terminal. For example, if the user clicks within the target area, the terminal will determine that the user's focus is generative content and display the generative content in a first display mode; otherwise, the terminal determines that the user's focus is other display content and displays the generative content in a second display mode. The click behavior is very intuitive and easy for users to understand and use. The terminal can also use this to quickly identify the user's focus and enhance the fluency of the interaction.
[0077] For example, for a user using a mouse or a touchpad, hovering a cursor corresponding to the mouse or the touchpad over a certain content can indicate attention. When the hovering position of the cursor is within the target area, the terminal determines that the user's attention object is a generated content, and displays the generated content in a first display mode; otherwise, the terminal determines that the user's attention object is other display content, and displays the generated content in a second display mode.
[0078] In a sixth possible implementation, through voice recognition technology, the user can specify the object of interest through voice commands. For example, the user can say a keyword (such as "show generated content"), the terminal can collect the user's voice command, and understand the user's object of interest through natural language processing technology and perform corresponding operations. For example, the terminal can perform voice recognition processing on the voice command to obtain a recognized text. If the recognized text contains a specified keyword (such as "show generated content"), the terminal will determine that the user's object of interest is generated content and display the generated content in a first display mode; otherwise, the terminal determines that the user's object of interest is other display content and displays the generated content in a second display mode.
[0079] In a seventh possible implementation manner, a sensor in the terminal may be used to identify the interaction between the user and the terminal, and then based on the identified interaction, the user's focus object in the display interface is determined and a corresponding operation is performed.
[0080] Through these diverse interactive behaviors, the terminal can more comprehensively understand the user's focus in the display interface and provide more flexible and intelligent content display.
[0081] In some embodiments, in order to effectively manage the display space of the display interface and ensure that the generative content is fully displayed without oppressing other displayed content, during the period when the user's focus in the interactive interface is the generative content, the terminal can display the generative content in a first display mode, and gradually expand the target area to accommodate the gradually displayed generative content until the area of the target area is expanded to a preset area, and the preset area is less than or equal to the total area of the display interface. The specific size of the preset area can be specifically set according to the actual application scenario, and this embodiment does not impose any restrictions on this; this embodiment controls the area of the target area so that the user will not be overwhelmed by a large amount of information during the reading process, and also ensures that the generative content is fully displayed without oppressing other displayed content.
[0082] Furthermore, when the target area reaches the preset area, the user's focus is already on the generative content. Then, after the area of the target area is expanded to the preset area, the terminal can switch the display mode of the generative content from the first display mode to the second display mode, and display the generative content in the second display mode, gradually hiding the displayed part of the generative content in the target area to display the remaining part of the generative content to be displayed. This can ensure that the user focuses on the generative content while allowing other display content to continue to be presented, thereby avoiding information isolation and omission.
[0083] In short, by switching to the second display mode after the target area is expanded to the preset area, the terminal can not only effectively display the generated content, but also take into account the display of other display contents. This design provides users with a more flexible and comprehensive reading experience, making information acquisition more efficient, comfortable and layered.
[0084] In some embodiments, when the terminal displays the generated content in the second display mode, the target area may remain unchanged.
[0085] Or because the user's attention to the generated content decreases, the target area can be gradually reduced as the user operates. For example, when the user performs a specific operation (such as sliding, clicking, etc.), the target area will gradually shrink.
[0086] Alternatively, after the target area is reduced to a certain size as a result of a user operation, if the user stops the operation, the target area remains unchanged at the reduced size, and the user can continue to view the generated content in the reduced target area while also viewing other display content around it, thereby maintaining the flexibility of information acquisition.
[0087] In another case, the target area may gradually shrink until it disappears completely as the user operates. In this case, when the target area shrinks to an invisible state, the terminal stops displaying the remaining part of the generated content to be displayed, and only displays other display content in the display interface. The disappearance of the target area indicates that the user is no longer paying attention to the generated content, and the terminal can stop displaying the generated content in time to avoid invalid information transmission. After the target area disappears, the display interface will automatically turn to display other important information to ensure that users can get the content they need without interference. Through this design, users are no longer distracted by the previous generated content when viewing other display content, which improves the efficiency of information acquisition.
[0088] Exemplarily, in the process of displaying only other display contents in the display interface, if the target area is switched from an invisible state to a visible state based on the user operation, such as the user may make the originally invisible target area reappear by sliding, clicking or other interactive methods, this operation indicates that the user may refocus on the generated content. Then the terminal can display the remaining part of the generated content to be displayed in the second display mode within the first duration of the state switching in the target area. During the first duration, the terminal will gradually present the remaining generated content to be displayed in the second display mode. At this time, the generated content can be gradually displayed by gradual display, line-by-line display or other animation effects, so that the user can refocus on these contents more naturally. In this way, the terminal can provide visual feedback to remind the user that the generated content has been restored to visible, thereby improving the smoothness of the interaction. By gradually displaying the generated content in the second display mode within the first duration, the user can get a smoother experience when the generated content is switched to a visible state, reducing the discomfort caused by the sudden change of the interface.
[0089] During the first duration, the terminal gradually presents the remaining generative content in the second display mode. This period of time is to allow the user to adapt to the recovery of the content and provide a smooth visual experience. After the first duration ends, the terminal needs to continue to monitor the interactive behavior between the user and the terminal, such as touch, slide or other interactive behaviors, which will help the terminal determine whether the user is refocusing on the generative content. Further, after the first duration ends, if the terminal recognizes that the user's focus object in the display interface is generative content, the display mode of the generative content is switched from the second display mode to the first display mode. At this time, the target area for displaying the generative content is gradually expanded to accommodate the gradually displayed generative content, thereby meeting the user's reading needs. In this embodiment, the smoothness of switching from the second display mode to the first display mode ensures the user's comfortable experience during content consumption and avoids abrupt changes. By switching the display mode of the generative content from the second display mode to the first display mode after the first duration ends, the terminal can achieve a quick response to user attention. This design not only improves the user's interactive experience and information acquisition efficiency, but also strengthens the terminal's dynamic adaptability, allowing users to have a better experience when reading generated content, further enhancing the effectiveness and satisfaction of content consumption.
[0090] The various technical features in the above embodiments can be arbitrarily combined as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, any combination of the various technical features in the above embodiments also falls within the scope of this specification.
[0091] In some embodiments, see Figure 5 The embodiment of this specification also provides a flow chart of another method for displaying generated content, which can be executed by the above terminal, and the method includes:
[0092] In S501, a display interface for displaying generated content and at least one other display content is displayed, and the display interface includes a target area for displaying the generated content.
[0093] In S502, if the object of interest of the user in the display interface is a generative content, the generative content is displayed in a first display mode, and the first display mode indicates that the target area is gradually expanded to accommodate the gradually displayed generative content.
[0094] In S503, if the user's focus in the display interface is other display content, the generative content is displayed in a second display mode, and the second display mode indicates that part of the generative content that has been displayed is gradually hidden in the target area to display the remaining part of the generative content to be displayed.
[0095] In some embodiments, the display interface also includes other areas for displaying other display content; the first display mode indicates that the target area gradually extends and expands in the direction of other areas to accommodate the generated content that is gradually displayed, and other areas are synchronously reduced during the expansion of the target area.
[0096] In some embodiments, it also includes: identifying the object of interest of the user in the display interface.
[0097] Exemplarily, the object of interest of the user in the display interface is determined based on an analysis of the interaction behavior between the user and the terminal where the display interface is located.
[0098] In some embodiments, identifying an object of interest of a user in a display interface includes:
[0099] When the generated content starts to be displayed in the display interface, a timer is started, and if no user operation is detected within a preset time, the focused object is determined to be the generated content;
[0100] Alternatively, during the process of displaying the generative content in the display interface, if the first sliding gesture is detected and the sliding acceleration of the first sliding gesture does not exceed a preset threshold, it is determined that the focused object is the generative content;
[0101] Alternatively, during the process of displaying the generated content in the display interface, if a first sliding gesture is detected and the sliding acceleration of the first sliding gesture exceeds a preset threshold, it is determined that the object of interest is other displayed content;
[0102] Alternatively, during the process of displaying the generated content in the display interface, if it is detected that the user interaction position is within the target area, the focused object is determined to be the generated content; otherwise, the focused object is determined to be other displayed content.
[0103] In some embodiments, identifying the user's focus object in the display interface also includes: in the process of displaying the generative content in the second display mode on the display interface, if a second sliding gesture is detected, determining that the focus object is the generative content; wherein the display mode of the generative content is switched from the second display mode to the first display mode; and the sliding direction of the second sliding gesture is opposite to the sliding direction of the first sliding gesture.
[0104] In some embodiments, during the process of displaying the generated content in the first display mode, if a first sliding gesture is detected, the display speed of the generated content in the target area is positively correlated with the sliding speed of the first sliding gesture, otherwise, the display speed of the generated content in the target area is a preset speed.
[0105] In some embodiments, displaying the generative content in a first display mode includes: while the object of attention is the generative content, displaying the generative content in the first display mode until the area of the target region expands to a preset area, and the preset area is less than or equal to the total area of the display interface.
[0106] The method further includes: after the area of the target region is expanded to a preset area, switching the display mode of the generated content from the first display mode to the second display mode.
[0107] In some embodiments, during the process of displaying the generative content in the second display mode, the target area remains unchanged or gradually shrinks.
[0108] The method also includes: when the target area is reduced to an invisible state, stopping displaying the remaining part of the generated content to be displayed, and only displaying other display content in the display interface.
[0109] In some embodiments, it also includes: in the process of displaying only other display content in the display interface, if the target area is switched from an invisible state to a visible state based on a user operation, then within the first time period of the state switching of the target area, the remaining part of the generated content to be displayed is displayed in the second display mode; after the first time period ends, if the object of attention is the generated content, the display mode of the generated content is switched from the second display mode to the first display mode.
[0110] In some embodiments, the generative content and at least one other display content are generated in response to a user search instruction; wherein the generative content is the answer generated by the generative model based on the search term by inputting the search term indicated by the user search instruction into a pre-trained generative model; and the other display content is at least one search term related to the search term obtained by querying a preset database containing several search terms.
[0111] For details of the relevant implementation process, please refer to the implementation process of the corresponding steps in the above method, which will not be repeated here.
[0112] In some embodiments, the embodiments of this specification also provide an electronic device, including: a processor; a memory for storing processor executable instructions; wherein the processor implements any of the above methods by running the executable instructions.
[0113] Figure 6 is a schematic structural diagram of a device provided by an exemplary embodiment. Figure 6At the hardware level, the device includes a processor 602, an internal bus 604, a network interface 606, a memory 608, and a non-volatile memory 610, and may also include hardware required for other functions. One or more embodiments of this specification may be implemented based on software, such as the processor 602 reading the corresponding computer program from the non-volatile memory 610 into the memory 608 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0114] In some embodiments, the display device of the generated content can be applied to Figure 6 The device shown in the figure is used to implement the technical solution of this specification. The display device of the generated content may include:
[0115] The attention object identification module is used to identify the attention object of the user in the display interface; wherein the display interface is used to display the generated content and at least one other display content; the display interface includes a target area for displaying the generated content.
[0116] The display module is configured to display the generated content in a first display mode if the object of interest is the generated content, wherein the first display mode indicates that the target area is gradually enlarged to accommodate the generated content that is gradually displayed.
[0117] The display module is further configured to display the generated content in a second display mode if the object of interest is the other display content, wherein the second display mode indicates gradually hiding a displayed portion of the generated content in the target area to display a remaining portion of the generated content to be displayed.
[0118] In one implementation, the display interface also includes other areas for displaying the other display content; the first display mode indicates that the target area gradually extends and expands in the direction of the other areas to accommodate the generated content that is gradually displayed, and the other areas are synchronously reduced during the expansion of the target area.
[0119] In one implementation, the user's attention object in the display interface is determined based on an analysis of an interaction behavior between the user and a terminal where the display interface is located.
[0120] In one implementation, the object recognition module is specifically configured to:
[0121] When the generated content starts to be displayed in the display interface, timing is performed, and if no user operation is detected within a preset time period, determining that the object of interest is the generated content;
[0122] Alternatively, during the process of displaying the generated content in the display interface, if a first sliding gesture is detected and the sliding acceleration of the first sliding gesture does not exceed a preset threshold, determining that the focused object is the generated content;
[0123] Alternatively, during the process of displaying the generated content in the display interface, if the first sliding gesture is detected and the sliding acceleration of the first sliding gesture exceeds the preset threshold, determining that the object of interest is the other displayed content;
[0124] Alternatively, during the process of displaying the generated content in the display interface, if it is detected that the user interaction position is within the target area, the focus object is determined to be the generated content; otherwise, the focus object is determined to be the other displayed content.
[0125] In one implementation, the focus object identification module is also used to determine that the focus object is the generated content if a second sliding gesture is detected during the process of displaying the generated content in the second display mode on the display interface; wherein the display mode of the generated content is switched from the second display mode to the first display mode; and the sliding direction of the second sliding gesture is opposite to the sliding direction of the first sliding gesture.
[0126] In one implementation, during the process of displaying the generated content in the first display mode, if the first sliding gesture is detected, the display speed of the generated content in the target area is positively correlated with the sliding speed of the first sliding gesture; otherwise, the display speed of the generated content in the target area is a preset speed.
[0127] In one implementation, the display module is specifically configured to display the generated content in a first display mode while the object of interest is the generated content, until the area of the target region is expanded to a preset area, and the preset area is less than or equal to the total area of the display interface.
[0128] The display module is further configured to switch the display mode of the generated content from the first display mode to the second display mode after the area of the target region is expanded to the preset area.
[0129] In an implementation manner, during the process of displaying the generated content in the second display manner, the target area remains unchanged or gradually shrinks.
[0130] The display module is further configured to stop displaying the remaining generated content to be displayed when the target area is reduced to an invisible state, and only display the other display content in the display interface.
[0131] In one implementation, the display module is also used to, during the process of displaying only the other display contents in the display interface, if the target area is switched from the invisible state to the visible state based on a user operation, then within a first time period of state switching in the target area, display the remaining portion of the generated content to be displayed in a second display mode; after the first time period ends, if the object of attention is the generated content, switch the display mode of the generated content from the second display mode to the first display mode.
[0132] In one implementation, the generative content and at least one other display content are generated in response to a user search instruction; wherein, the generative content is the answer generated by the generative model based on the search term by inputting the search term indicated by the user search instruction into a pre-trained generative model; and the other display content is at least one search term related to the search term obtained by querying a preset database containing several search terms.
[0133] In some embodiments, the display device of the generated content can be applied to Figure 6 The device shown in the figure is used to implement the technical solution of this specification. The display device of the generated content may include:
[0134] A display module, configured to display a display interface for displaying the generated content and at least one other display content, wherein the display interface includes a target area for displaying the generated content;
[0135] The display module is further configured to display the generated content in a first display mode if the user's attention object in the display interface is the generated content, wherein the first display mode indicates that the target area is gradually expanded to accommodate the generated content that is gradually displayed;
[0136] The display module is also used to display the generated content in a second display mode if the user's focus object in the display interface is the other display content, and the second display mode indicates that the displayed part of the generated content is gradually hidden in the target area to display the remaining part of the generated content to be displayed.
[0137] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0138] Based on the same concept as the above method, this specification also provides a computer-readable storage medium on which computer instructions are stored. When the instructions are executed by a processor, the steps of the method described in any of the above embodiments are implemented.
[0139] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0140] Based on the same concept as the above method, this specification also provides a computer program product, including a computer program / instruction, which implements the steps of the method described in any of the above embodiments when executed by a processor.
[0141] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.
Claims
1. A method for displaying generated content, comprising: Identifying an object of interest of a user in a display interface; wherein the display interface is used to display the generated content and at least one other display content; the display interface includes a target area for displaying the generated content; If the object of interest is the generated content, displaying the generated content in a first display mode, wherein the first display mode indicates that the target area is gradually enlarged to accommodate the generated content that is gradually displayed; If the object of interest is the other display content, the generated content is displayed in a second display mode, and the second display mode indicates that a displayed portion of the generated content is gradually hidden in the target area to display a remaining portion of the generated content to be displayed.
2. The method according to claim 1, wherein the display interface further comprises other areas for displaying the other display contents; The first display mode indicates that the target area gradually extends and expands in the direction where the other areas are located to accommodate the generated content that is gradually displayed, and the other areas are synchronously reduced during the expansion of the target area.
3. According to the method of claim 1, the user's attention object in the display interface is determined based on an analysis of the interaction behavior between the user and the terminal where the display interface is located.
4. According to the method of claim 3, the step of identifying the object of interest of the user in the display interface comprises: When the generated content starts to be displayed in the display interface, timing is performed, and if no user operation is detected within a preset time period, determining that the object of interest is the generated content; Alternatively, during the process of displaying the generated content in the display interface, if a first sliding gesture is detected and the sliding acceleration of the first sliding gesture does not exceed a preset threshold, determining that the focused object is the generated content; Alternatively, during the process of displaying the generated content in the display interface, if the first sliding gesture is detected and the sliding acceleration of the first sliding gesture exceeds the preset threshold, determining that the object of interest is the other displayed content; Alternatively, during the process of displaying the generated content in the display interface, if it is detected that the user interaction position is within the target area, the focus object is determined to be the generated content; otherwise, the focus object is determined to be the other displayed content.
5. The method according to claim 4, wherein the step of identifying the object of interest of the user in the display interface further comprises: During the process of displaying the generated content in the second display mode on the display interface, if a second sliding gesture is detected, it is determined that the object of attention is the generated content; wherein the display mode of the generated content is switched from the second display mode to the first display mode; and the sliding direction of the second sliding gesture is opposite to the sliding direction of the first sliding gesture.
6. According to the method of claim 4, in the process of displaying the generated content in the first display mode, if the first sliding gesture is detected, the display speed of the generated content in the target area is positively correlated with the sliding speed of the first sliding gesture; otherwise, the display speed of the generated content in the target area is a preset speed.
7. The method according to any one of claims 1 to 6, wherein displaying the generated content in a first display mode comprises: During the period when the object of interest is the generated content, displaying the generated content in a first display mode until the area of the target region is expanded to a preset area, and the preset area is less than or equal to the total area of the display interface; The method further comprises: After the area of the target region is expanded to the preset area, the display mode of the generated content is switched from the first display mode to the second display mode.
8. The method according to any one of claims 1 to 6, wherein during the process of displaying the generated content in the second display mode, the target area remains unchanged or gradually shrinks; The method further comprises: When the target area is reduced to an invisible state, the remaining portion of the generated content to be displayed stops being displayed, and only the other display content is displayed in the display interface.
9. The method according to claim 8, further comprising: In the process of displaying only the other display contents in the display interface, if the target area is switched from the invisible state to the visible state based on a user operation, then within a first duration of the state switching of the target area, a portion of the generated contents to be displayed is displayed in a second display mode; After the first duration ends, if the object of interest is the generative content, the display mode of the generative content is switched from the second display mode to the first display mode.
10. The method of claim 1, wherein the generated content and at least one other displayed content are generated in response to a user search instruction; in, The generative content is to input the search term indicated by the user search instruction into a pre-trained generative model, and the generative model generates an answer based on the search term; The other displayed content is at least one search item related to the search term obtained by querying a preset database containing several search items.
11. A method for displaying generated content, comprising: Displaying a display interface for displaying the generated content and at least one other display content, the display interface including a target area for displaying the generated content; If the user's attention object in the display interface is the generated content, display the generated content in a first display mode, wherein the first display mode indicates that the target area is gradually expanded to accommodate the generated content that is gradually displayed; If the user's focus in the display interface is the other display content, the generated content is displayed in a second display mode, and the second display mode indicates that the displayed part of the generated content is gradually hidden in the target area to display the remaining part of the generated content to be displayed.
12. An electronic device comprising: processor; A memory for storing processor-executable instructions; wherein the processor implements the steps of the method according to any one of claims 1 to 11 by executing the executable instructions.
13. A computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 11.
14. A computer program product comprising a computer program / instructions, which when executed by a processor implement the steps of the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Terminal self-adaptive amplification display method and system based on sight line tracking and terminal
CN110286759A
Display form adjusting method and device, electronic equipment and storage medium
CN113391735A
Interface display method and device, storage medium and terminal
CN114661401A
Wave lens systems and methods for search results
CN1674007A
Image reproducer and program
JP2005354332A