Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,31 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
with gr.Blocks() as demo:
|
4 |
with gr.Row():
|
5 |
gr.Image(value="gemma_lockup_vertical_full-color_rgb.png")
|
6 |
gr.Image(value="Meta_lockup_positive primary_RGB.png")
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
'''
|
4 |
with gr.Blocks() as demo:
|
5 |
with gr.Row():
|
6 |
gr.Image(value="gemma_lockup_vertical_full-color_rgb.png")
|
7 |
gr.Image(value="Meta_lockup_positive primary_RGB.png")
|
8 |
|
9 |
+
demo.launch()
|
10 |
+
'''
|
11 |
+
|
12 |
+
import random
|
13 |
+
#import gradio as gr
|
14 |
+
|
15 |
+
def alternatingly_agree(message, history):
|
16 |
+
if len(history) % 2 == 0:
|
17 |
+
return f"Yes, I do think that '{message}'"
|
18 |
+
else:
|
19 |
+
return "I don't think so"
|
20 |
+
|
21 |
+
placeholder = """
|
22 |
+
<img src="gemma_lockup_vertical_full-color_rgb.png" style="width:40%">
|
23 |
+
<b>CodeGemma-7B-IT</b>
|
24 |
+
"""
|
25 |
+
|
26 |
+
chat = gr.Chatbot(placeholder=placeholder)
|
27 |
+
with gr.Blocks() as demo:
|
28 |
+
#gr.Image(value="gemma_lockup_vertical_full-color_rgb.png")
|
29 |
+
gr.ChatInterface(alternatingly_agree, chatbot=chat, fill_height=True )
|
30 |
+
|
31 |
demo.launch()
|