Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import openai
|
|
4 |
import os
|
5 |
import matplotlib.pyplot as plt
|
6 |
from matplotlib import font_manager
|
|
|
7 |
|
8 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
9 |
|
@@ -177,6 +178,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
177 |
with gr.Column():
|
178 |
question = gr.Textbox(label="ׁ ׁ ꥓ ݄ ׁ 𖦹 ׅ 𓈒Your Question⋆𐙚₊˚⊹♡", placeholder="༘⋆🌷🫧What are You Wondering?💭₊˚ෆ")
|
179 |
answer = gr.Textbox(label="˚ ༘˚Plai's Responseೀ⋆。", placeholder="ೀ🍨‧°Plai Your Way Here🎀⊹°。♡", interactive=False, lines=17)
|
|
|
180 |
submit_button = gr.Button("˚₊‧꒰აAsk Away໒꒱ ‧₊˚")
|
181 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
182 |
|
|
|
4 |
import os
|
5 |
import matplotlib.pyplot as plt
|
6 |
from matplotlib import font_manager
|
7 |
+
from PIL import Image
|
8 |
|
9 |
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
10 |
|
|
|
178 |
with gr.Column():
|
179 |
question = gr.Textbox(label="ׁ ׁ ꥓ ݄ ׁ 𖦹 ׅ 𓈒Your Question⋆𐙚₊˚⊹♡", placeholder="༘⋆🌷🫧What are You Wondering?💭₊˚ෆ")
|
180 |
answer = gr.Textbox(label="˚ ༘˚Plai's Responseೀ⋆。", placeholder="ೀ🍨‧°Plai Your Way Here🎀⊹°。♡", interactive=False, lines=17)
|
181 |
+
image_output=gr.Image(label="Image Outputs Here")
|
182 |
submit_button = gr.Button("˚₊‧꒰აAsk Away໒꒱ ‧₊˚")
|
183 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
184 |
|