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