jozzy commited on
Commit
b1918f7
·
1 Parent(s): 8fd0aa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,9 +134,9 @@ text = gr.Interface(fn=textGPT, inputs="text", outputs="text")
134
  #audio = gr.Interface(fn=audioGPT, inputs=gr.Audio(source="microphone", type="filepath"), outputs="text")
135
  #siri = gr.Interface(fn=siriGPT, inputs=gr.Audio(source="microphone", type="filepath"), outputs = "audio")
136
  file = gr.Interface(fn=fileGPT, inputs=["text", "file"], outputs="text", description = "Enter prompt sentences and your PDF. e.g. lets think step by step, summarize this following text: 或者 让我们一步一步地思考,总结以下的内容:")
137
- demo = gr.TabbedInterface([role, text, , file, chatHistory], [ "roleChoice", "chatGPT", "fileGPT", "ChatHistory"])
138
 
139
  if __name__ == "__main__":
140
  demo.launch(enable_queue=False, auth=lambda u, p: user_db.get(u) == p,
141
- auth_message="Welcome to Yichuan GPT!")
142
  #demo.launch()
 
134
  #audio = gr.Interface(fn=audioGPT, inputs=gr.Audio(source="microphone", type="filepath"), outputs="text")
135
  #siri = gr.Interface(fn=siriGPT, inputs=gr.Audio(source="microphone", type="filepath"), outputs = "audio")
136
  file = gr.Interface(fn=fileGPT, inputs=["text", "file"], outputs="text", description = "Enter prompt sentences and your PDF. e.g. lets think step by step, summarize this following text: 或者 让我们一步一步地思考,总结以下的内容:")
137
+ demo = gr.TabbedInterface([role, text, file, chatHistory], [ "roleChoice", "chatGPT", "fileGPT", "ChatHistory"])
138
 
139
  if __name__ == "__main__":
140
  demo.launch(enable_queue=False, auth=lambda u, p: user_db.get(u) == p,
141
+ auth_message="This is not designed to be used publicly as it links to a personal openAI API. However, you can copy my code and create your own multi-functional ChatGPT with your unique ID and password by utilizing the 'Repository secrets' feature in huggingface.")
142
  #demo.launch()