eliwill commited on
Commit
0305cba
·
1 Parent(s): 8cc010d

Change philosopher labels

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,12 +21,12 @@ krishnamurti_generator = pipeline("text-generation", model="distilgpt2")
21
 
22
  # Creating philosopher dictionary
23
  philosopher_dictionary = {
24
- "stoic": {
25
  "generator": stoic_generator,
26
  "dataframe": stoic_df
27
  },
28
 
29
- "krishnamurti": {
30
  "generator": krishnamurti_generator,
31
  "dataframe": krishnamurti_df
32
  }
@@ -67,7 +67,7 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=blue_mountain
67
  with gr.Row():
68
  with gr.Column():
69
  inp1 = gr.Textbox(placeholder="Place your question here...", label="Ask a question", elem_id="title")
70
- inp2 = gr.Dropdown(choices=["stoic", "krishnamurti"], value="stoic", label="Choose a philosopher")
71
 
72
  out1 = gr.Textbox(
73
  lines=3,
 
21
 
22
  # Creating philosopher dictionary
23
  philosopher_dictionary = {
24
+ "Marcus Aurelius": {
25
  "generator": stoic_generator,
26
  "dataframe": stoic_df
27
  },
28
 
29
+ "Krishnamurti": {
30
  "generator": krishnamurti_generator,
31
  "dataframe": krishnamurti_df
32
  }
 
67
  with gr.Row():
68
  with gr.Column():
69
  inp1 = gr.Textbox(placeholder="Place your question here...", label="Ask a question", elem_id="title")
70
+ inp2 = gr.Dropdown(choices=["Marcus Aurelius", "Krishnamurti"], value="Marcus Aurelius", label="Choose a philosopher")
71
 
72
  out1 = gr.Textbox(
73
  lines=3,