Clean rebuild for Gradio compatibility
Browse files- app.py +2 -7
- requirements.txt +4 -4
app.py
CHANGED
@@ -272,10 +272,5 @@ def main_interface():
|
|
272 |
|
273 |
# Launch the Gradio interface
|
274 |
if __name__ == "__main__":
|
275 |
-
|
276 |
-
|
277 |
-
interface = main_interface()
|
278 |
-
# In Spaces, we don't call launch() as the platform handles the server
|
279 |
-
else:
|
280 |
-
interface = main_interface()
|
281 |
-
interface.launch(share=False) # Set share=True for local public URL
|
|
|
272 |
|
273 |
# Launch the Gradio interface
|
274 |
if __name__ == "__main__":
|
275 |
+
interface = main_interface()
|
276 |
+
interface.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
|
|
|
|
|
|
requirements.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
|
|
|
|
|
2 |
nltk
|
|
|
3 |
scikit-learn
|
4 |
sentence-transformers
|
5 |
graphviz
|
6 |
-
gradio==4.44.1
|
7 |
-
fastapi>=0.103.0
|
8 |
-
uvicorn>=0.22.0
|
|
|
1 |
+
gradio==4.43.0
|
2 |
+
fastapi==0.103.0
|
3 |
+
uvicorn==0.22.0
|
4 |
nltk
|
5 |
+
pandas
|
6 |
scikit-learn
|
7 |
sentence-transformers
|
8 |
graphviz
|
|
|
|
|
|