Spaces:
Runtime error
Runtime error
Commit
·
c8a8f0b
1
Parent(s):
7ddcdfa
Removed input text from interface
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ with open('ptb.jsonl', 'r') as f:
|
|
17 |
def process_text(model_name, task, text):
|
18 |
for gid in tqdm(gid_list, desc='Query'):
|
19 |
text = ptb[gid]['text']
|
20 |
-
|
21 |
# Define prompts for each strategy based on the task
|
22 |
strategy_prompts = {
|
23 |
'Strategy 1': template_all.format(text),
|
@@ -50,7 +50,6 @@ iface = gr.Interface(
|
|
50 |
inputs=[
|
51 |
gr.Dropdown(model_options, label="Select Model"),
|
52 |
gr.Dropdown(task_options, label="Select Task"),
|
53 |
-
gr.Textbox(label="Input Text", placeholder="Enter the text to process..."),
|
54 |
],
|
55 |
outputs=[
|
56 |
gr.Textbox(label="Strategy 1 QA Result"),
|
|
|
17 |
def process_text(model_name, task, text):
|
18 |
for gid in tqdm(gid_list, desc='Query'):
|
19 |
text = ptb[gid]['text']
|
20 |
+
|
21 |
# Define prompts for each strategy based on the task
|
22 |
strategy_prompts = {
|
23 |
'Strategy 1': template_all.format(text),
|
|
|
50 |
inputs=[
|
51 |
gr.Dropdown(model_options, label="Select Model"),
|
52 |
gr.Dropdown(task_options, label="Select Task"),
|
|
|
53 |
],
|
54 |
outputs=[
|
55 |
gr.Textbox(label="Strategy 1 QA Result"),
|