Spaces:
Build error
Build error
shahryarsaeed23 commited on
Commit ·
effa8a5
1
Parent(s): 61fe723
api
Browse files
app.py
CHANGED
|
@@ -22,8 +22,7 @@ demo = gr.Interface(
|
|
| 22 |
inputs=gr.Textbox(label="Input Text"),
|
| 23 |
outputs=gr.Textbox(label="Sentiment Analysis Result"),
|
| 24 |
allow_flagging="never", # Disable flagging (optional, but good for API usage)
|
| 25 |
-
api=True # Enable API
|
| 26 |
)
|
| 27 |
|
| 28 |
if __name__ == "__main__":
|
| 29 |
-
demo.launch()
|
|
|
|
| 22 |
inputs=gr.Textbox(label="Input Text"),
|
| 23 |
outputs=gr.Textbox(label="Sentiment Analysis Result"),
|
| 24 |
allow_flagging="never", # Disable flagging (optional, but good for API usage)
|
|
|
|
| 25 |
)
|
| 26 |
|
| 27 |
if __name__ == "__main__":
|
| 28 |
+
demo.launch(share=True) # Use share=True to expose the interface publicly
|