Spaces:
Runtime error
Runtime error
Update app.py
Browse files2 unmodified lines3456789101184 unmodified lines969798991001011022 unmodified linesimport gradio as grfrom textblob import TextBlob# Create a Joke API fetch tooimport requestsdef joke_generation(categories: str = "Any",format: str = "json",84 unmodified lines# Create the Gradio interface (creates both the web UI and MCP server)demo = gr.Interface(fn=sentiment_analysis,inputs=gr.Textbox(placeholder="Enter text to analyze..."),outputs=gr.Textbox(), # Changed from gr.JSON() to gr.Textbox()title="Text Sentiment Analysis",2 unmodified lines345678984 unmodified lines9495969798991002 unmodified linesimport gradio as grfrom textblob import TextBlob# Create a Joke API fetch tooldef joke_generation(categories: str = "Any",format: str = "json",84 unmodified lines# Create the Gradio interface (creates both the web UI and MCP server)demo = gr.Interface(fn=sentiment_analysis, joke_generation,inputs=gr.Textbox(placeholder="Enter text to analyze..."),outputs=gr.Textbox(), # Changed from gr.JSON() to gr.Textbox()title="Text Sentiment Analysis",
app.py+2-4