Ryan commited on
Commit
b5a710f
·
1 Parent(s): 43b87f7
Files changed (2) hide show
  1. README.md +2 -0
  2. app.py +4 -1
README.md CHANGED
@@ -19,6 +19,8 @@ This is my Gradio App homework assignment User Guide. The beginning of this mar
19
 
20
  Here is a link to the video demo also:
21
 
 
 
22
  # Introduction
23
 
24
  This is a Gradio app that allows you to compare the responses of two different LLMs (Language Models) to the same input prompt. The app provides a simple interface where you can enter a prompt and responses yourself, or select from the built-in dataset. The app is built using the Gradio library, which provides a user-friendly interface for creating web applications with Python. The app is designed to be easy to use and provides a simple way to compare the responses of different LLMs to the same input prompt. It can be useful for researchers and developers who want to evaluate the performance of different LLMs on the same task.
 
19
 
20
  Here is a link to the video demo also:
21
 
22
+ https://drive.google.com/file/d/1DoMj5CAfjCgOVVMpDqr8VTJCULrFw-4c/view?usp=share_link
23
+
24
  # Introduction
25
 
26
  This is a Gradio app that allows you to compare the responses of two different LLMs (Language Models) to the same input prompt. The app provides a simple interface where you can enter a prompt and responses yourself, or select from the built-in dataset. The app is built using the Gradio library, which provides a user-friendly interface for creating web applications with Python. The app is designed to be easy to use and provides a simple way to compare the responses of different LLMs to the same input prompt. It can be useful for researchers and developers who want to evaluate the performance of different LLMs on the same task.
app.py CHANGED
@@ -959,7 +959,7 @@ def create_app():
959
 
960
  # Dropdown for selecting summary file
961
  summary_dropdown = gr.Dropdown(
962
- choices=["YOUR DATASET RESULTS"] + summary_files,
963
  label="Select Summary",
964
  info="Choose a summary to display",
965
  value="YOUR DATASET RESULTS"
@@ -989,6 +989,9 @@ def create_app():
989
  if not file_name:
990
  return "", "*No summary selected*"
991
 
 
 
 
992
  # Handle the special "YOUR DATASET RESULTS" option
993
  if file_name == "YOUR DATASET RESULTS":
994
  if not user_log or not any(user_log.values()):
 
959
 
960
  # Dropdown for selecting summary file
961
  summary_dropdown = gr.Dropdown(
962
+ choices=["YOUR DATASET RESULTS"] + summary_files + ["CLEAR DATA"],
963
  label="Select Summary",
964
  info="Choose a summary to display",
965
  value="YOUR DATASET RESULTS"
 
989
  if not file_name:
990
  return "", "*No summary selected*"
991
 
992
+ if file_name == "CLEAR DATA":
993
+ return "", "**Content cleared**"
994
+
995
  # Handle the special "YOUR DATASET RESULTS" option
996
  if file_name == "YOUR DATASET RESULTS":
997
  if not user_log or not any(user_log.values()):