samsonleegh commited on
Commit
4109e8e
·
verified ·
1 Parent(s): a8fcfee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -125,5 +125,6 @@ def retreive(question):
125
  return str(streaming_response) #+ "\n" + str(sources)
126
 
127
  demo = gr.Interface(fn=retreive, inputs="textbox", outputs="textbox")
128
-
129
- demo.launch(share=True) # Share your demo with just 1 extra parameter 🚀
 
 
125
  return str(streaming_response) #+ "\n" + str(sources)
126
 
127
  demo = gr.Interface(fn=retreive, inputs="textbox", outputs="textbox")
128
+
129
+ if __name__ == "__main__":
130
+ demo.launch(share=True)