Spaces:
Build error
Build error
Change philosopher labels
Browse files
app.py
CHANGED
|
@@ -21,12 +21,12 @@ krishnamurti_generator = pipeline("text-generation", model="distilgpt2")
|
|
| 21 |
|
| 22 |
# Creating philosopher dictionary
|
| 23 |
philosopher_dictionary = {
|
| 24 |
-
"
|
| 25 |
"generator": stoic_generator,
|
| 26 |
"dataframe": stoic_df
|
| 27 |
},
|
| 28 |
|
| 29 |
-
"
|
| 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=["
|
| 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,
|