Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,9 @@ import gradio as gr
|
|
2 |
import requests
|
3 |
import json
|
4 |
import os
|
5 |
-
|
|
|
|
|
6 |
def generate(description, model, max_tokens):
|
7 |
headers = {
|
8 |
'Content-Type': 'application/json',
|
@@ -32,5 +34,5 @@ iface = gr.Interface(fn=generate, inputs=[
|
|
32 |
gr.Textbox(label="Запрос"),
|
33 |
gr.Radio(show_label=True, label="Модель", interactive=True, choices=["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4"], value="gpt-3.5-turbo"),
|
34 |
gr.Slider(show_label=True, label="Максимум токенов", minimum=100, maximum=15000, value=10000, step=1)
|
35 |
-
], outputs=gr.Textbox(label="Ответ"))
|
36 |
iface.launch()
|
|
|
2 |
import requests
|
3 |
import json
|
4 |
import os
|
5 |
+
css = """
|
6 |
+
footer {visibility: hidden !important;}
|
7 |
+
"""
|
8 |
def generate(description, model, max_tokens):
|
9 |
headers = {
|
10 |
'Content-Type': 'application/json',
|
|
|
34 |
gr.Textbox(label="Запрос"),
|
35 |
gr.Radio(show_label=True, label="Модель", interactive=True, choices=["gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4"], value="gpt-3.5-turbo"),
|
36 |
gr.Slider(show_label=True, label="Максимум токенов", minimum=100, maximum=15000, value=10000, step=1)
|
37 |
+
], outputs=gr.Textbox(label="Ответ"), css=css)
|
38 |
iface.launch()
|