kristada673 commited on
Commit
70a219f
·
1 Parent(s): 6fb9691

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -44,6 +44,7 @@ An example of querying about something the LLM's training did not include:
44
  def chat_response(query):
45
  return index_saved.query(query)
46
 
47
- interface = gradio.Interface(fn=chat_response, inputs="text", outputs="text", title='Annual Reports GPT', description=description)
48
-
49
- interface.launch() #server_name="0.0.0.0", server_port=8080, share=True)
 
 
44
  def chat_response(query):
45
  return index_saved.query(query)
46
 
47
+ if __name__ == "__main__":
48
+ interface = gradio.Interface(fn=chat_response, inputs="text", outputs="text", title='Annual Reports GPT', description=description)
49
+
50
+ interface.launch() #server_name="0.0.0.0", server_port=8080, share=True)