Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ def predict(text):
|
|
98 |
|
99 |
|
100 |
#['huggingface', 'models', 'spaces']
|
101 |
-
sentiment = gr.load(model_id_7, src="
|
102 |
|
103 |
def sentiment (message):
|
104 |
sentiment_label = sentiment.predict(message)
|
@@ -186,4 +186,5 @@ app = gr.Interface(
|
|
186 |
|
187 |
|
188 |
app = gr.Interface(fn=factextraction, inputs="textbox", outputs="textbox", title="Conversation Bot")
|
|
|
189 |
app.launch()
|
|
|
98 |
|
99 |
|
100 |
#['huggingface', 'models', 'spaces']
|
101 |
+
sentiment = gr.load(model_id_7, src="huggingface")
|
102 |
|
103 |
def sentiment (message):
|
104 |
sentiment_label = sentiment.predict(message)
|
|
|
186 |
|
187 |
|
188 |
app = gr.Interface(fn=factextraction, inputs="textbox", outputs="textbox", title="Conversation Bot")
|
189 |
+
# create a public link, set `share=True` in `launch()
|
190 |
app.launch()
|