Spaces:
Running
Running
up
Browse files
app.py
CHANGED
@@ -120,10 +120,11 @@ def chat(input_text, conversation_history):
|
|
120 |
|
121 |
def create_interface():
|
122 |
with gr.Blocks(title="Text Analysis App") as interface:
|
|
|
123 |
input_type = gr.Dropdown(["Text", "URL", "File"], label="Input Type")
|
124 |
-
text_input = gr.Textbox(visible=False)
|
125 |
-
url_input = gr.Textbox(visible=False)
|
126 |
-
file_input = gr.File(visible=False)
|
127 |
|
128 |
tasks_checkboxes = gr.CheckboxGroup(["Summarization", "Sentiment Analysis", "Topic Detection"], label="Analysis Tasks")
|
129 |
|
|
|
120 |
|
121 |
def create_interface():
|
122 |
with gr.Blocks(title="Text Analysis App") as interface:
|
123 |
+
gr.Markdown("## Choose data format to analyze")
|
124 |
input_type = gr.Dropdown(["Text", "URL", "File"], label="Input Type")
|
125 |
+
text_input = gr.Textbox(visible=False, label="Text Input")
|
126 |
+
url_input = gr.Textbox(visible=False, label="URL Input")
|
127 |
+
file_input = gr.File(visible=False, label="File Upload")
|
128 |
|
129 |
tasks_checkboxes = gr.CheckboxGroup(["Summarization", "Sentiment Analysis", "Topic Detection"], label="Analysis Tasks")
|
130 |
|