Spaces:
Running
Running
freQuensy23
commited on
Commit
•
276e2b6
1
Parent(s):
79b2407
Add demo created by
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from dotenv import load_dotenv
|
2 |
from generators import *
|
3 |
import gradio as gr
|
@@ -44,5 +45,22 @@ with gr.Blocks() as demo:
|
|
44 |
inputs=[system_input, user_input],
|
45 |
outputs=[gpt, mistral, llama2, llama3, t5, mixtral],
|
46 |
)
|
|
|
|
|
|
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
demo.launch()
|
|
|
1 |
+
import gradio
|
2 |
from dotenv import load_dotenv
|
3 |
from generators import *
|
4 |
import gradio as gr
|
|
|
45 |
inputs=[system_input, user_input],
|
46 |
outputs=[gpt, mistral, llama2, llama3, t5, mixtral],
|
47 |
)
|
48 |
+
user_input.submit(fn=handle,
|
49 |
+
inputs=[system_input, user_input],
|
50 |
+
outputs=[gpt, mistral, llama2, llama3, t5, mixtral], )
|
51 |
|
52 |
+
with gr.Row():
|
53 |
+
with gr.Column(scale=1):
|
54 |
+
gr.Image(value='icon.jpg')
|
55 |
+
with gr.Column(scale=4):
|
56 |
+
gradio.HTML("""<div style="text-align: center; font-family: 'Helvetica Neue', sans-serif; padding: 10px; color: #333333;">
|
57 |
+
<p style="font-size: 18px; font-weight: 600; margin-bottom: 8px;">
|
58 |
+
Эта демка была создана телеграм каналом <strong style="color: #007ACC;"><a href='https://t.me/mlphys'> mlphys</a></strong>. Другие мои социальные сети:
|
59 |
+
</p>
|
60 |
+
<p style="font-size: 16px;">
|
61 |
+
<a href="https://t.me/mlphys" target="_blank" style="color: #0088cc; text-decoration: none; font-weight: 500;">Telegram</a> |
|
62 |
+
<a href="https://x.com/quensy23" target="_blank" style="color: #1DA1F2; text-decoration: none; font-weight: 500;">Twitter</a> |
|
63 |
+
<a href="https://github.com/freQuensy23-coder" target="_blank" style="color: #0088cc; text-decoration: none; font-weight: 500;">GitHub</a>
|
64 |
+
</p>
|
65 |
+
</div>""")
|
66 |
demo.launch()
|