Spaces:
Sleeping
Sleeping
temo12/Auto-Insight
Browse files- app.py +10 -0
- requirements.txt +2 -0
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
# Example Gradio function for sentiment analysis (adjust with your model/logic)
|
| 5 |
+
def sentiment_analyze(input_text):
|
| 6 |
+
return f"Sentiment analyzed for: {input_text}"
|
| 7 |
+
|
| 8 |
+
# Create Gradio interface
|
| 9 |
+
app = gr.Interface(fn=sentiment_analyze, inputs="text", outputs="text")
|
| 10 |
+
app.launch()
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
gradio==3.30.0
|