Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -278,7 +278,6 @@ def submit_prompts(prompts_data):
|
|
278 |
})
|
279 |
return plot_prob(prompts_with_probs), plot_rank(prompts_with_ranks),plot_prob_mean(prompts_with_probs),plot_rank_mean(prompts_with_ranks)
|
280 |
|
281 |
-
|
282 |
def clear_all(prompts):
|
283 |
prompts=[['']]
|
284 |
# prompt_file=gr.File(type="filepath", label="Upload a File with Prompts")
|
@@ -286,7 +285,6 @@ def clear_all(prompts):
|
|
286 |
prompts_data = gr.Dataframe(headers=["Prompt"], row_count=5, col_count=1, value= prompts, type="array", interactive=True)
|
287 |
return prompts_data,prompt_file,plot_prob(prompts_with_probs),plot_rank(prompts_with_ranks),plot_prob_mean(prompts_with_probs),plot_rank_mean(prompts_with_ranks)
|
288 |
|
289 |
-
|
290 |
def gradio_interface():
|
291 |
with gr.Blocks(theme="gradio/monochrome") as demo:
|
292 |
prompts=[['']]
|
|
|
278 |
})
|
279 |
return plot_prob(prompts_with_probs), plot_rank(prompts_with_ranks),plot_prob_mean(prompts_with_probs),plot_rank_mean(prompts_with_ranks)
|
280 |
|
|
|
281 |
def clear_all(prompts):
|
282 |
prompts=[['']]
|
283 |
# prompt_file=gr.File(type="filepath", label="Upload a File with Prompts")
|
|
|
285 |
prompts_data = gr.Dataframe(headers=["Prompt"], row_count=5, col_count=1, value= prompts, type="array", interactive=True)
|
286 |
return prompts_data,prompt_file,plot_prob(prompts_with_probs),plot_rank(prompts_with_ranks),plot_prob_mean(prompts_with_probs),plot_rank_mean(prompts_with_ranks)
|
287 |
|
|
|
288 |
def gradio_interface():
|
289 |
with gr.Blocks(theme="gradio/monochrome") as demo:
|
290 |
prompts=[['']]
|