michaelthwan commited on
Commit
fb545b2
·
1 Parent(s): 2f6f53f
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Michael Wan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
digester/chatgpt_service.py CHANGED
@@ -130,7 +130,7 @@ class ChatGPTService:
130
  # seems no need chat history now (have it later?)
131
  # history.append(prompt_show_user)
132
  # history.append(gpt_response)
133
- full_gpt_response += gpt_response
134
  yield chatbot, history, "Success", source_md # show gpt output
135
  return full_gpt_response, len(prompts)
136
 
 
130
  # seems no need chat history now (have it later?)
131
  # history.append(prompt_show_user)
132
  # history.append(gpt_response)
133
+ full_gpt_response += gpt_response + "\n"
134
  yield chatbot, history, "Success", source_md # show gpt output
135
  return full_gpt_response, len(prompts)
136
 
digester/gradio_method_service.py CHANGED
@@ -7,7 +7,7 @@ from digester.chatgpt_service import LLMService, ChatGPTService
7
  from digester.util import Prompt, provide_text_with_css, GradioInputs
8
 
9
  WAITING_FOR_TARGET_INPUT = "Waiting for target source input"
10
- RESPONSE_SUFFIX = "⚡Powered by github.com/michaelthwan/digest-everything-gpt"
11
 
12
 
13
  class GradioMethodService:
 
7
  from digester.util import Prompt, provide_text_with_css, GradioInputs
8
 
9
  WAITING_FOR_TARGET_INPUT = "Waiting for target source input"
10
+ RESPONSE_SUFFIX = "⚡Powered by DigestEverythingGPT (in Github). Generated by AI"
11
 
12
 
13
  class GradioMethodService:
digester/gradio_ui_service.py CHANGED
@@ -5,12 +5,15 @@ from digester.gradio_method_service import GradioMethodService
5
 
6
  title_html = """
7
  <h1 align=\"center\">DigestEverythingGPT</h1>
8
- <p align=\"center\">Version 20230613 (
9
- <a href="https://github.com/michaelthwan/digest-everything-gpt"><i class="fa fa-github"></i> Github</a>
10
- ) (
11
- <a href="https://huggingface.co/spaces/michaelthwan/digest-everything-gpt"> HFSpace</a>
12
- )<br>
13
- Please give me a star in github if you like it 🌟! Your feedback will help us to improve</p>
 
 
 
14
  """
15
 
16
  cancel_handles = []
 
5
 
6
  title_html = """
7
  <h1 align=\"center\">DigestEverythingGPT</h1>
8
+ <p align=\"center\">
9
+ DigestEverythingGPT leverages ChatGPT/LLMs to help users quickly understand essential information from various forms of content, such as podcasts, YouTube videos, and PDF documents.<br>
10
+ The prompt engineering is chained and tuned so that is result is of high quality and fast. It is not a simple single query and response tool.<br>
11
+ Version 20230614 (
12
+ <a href="https://github.com/michaelthwan/digest-everything-gpt"><i class="fa fa-github"></i> Github</a>
13
+ ) (
14
+ <a href="https://huggingface.co/spaces/michaelthwan/digest-everything-gpt"> HFSpace</a>
15
+ )<br>
16
+ Please give me a star in github if you like it 🌟! Your feedback will help us to improve</p>
17
  """
18
 
19
  cancel_handles = []