Spaces:
Sleeping
Sleeping
0.54 Spreadshe integr
Browse files- app.py +5 -1
- requirements.txt +3 -1
app.py
CHANGED
@@ -10,6 +10,10 @@ import traceback
|
|
10 |
from threading import Thread
|
11 |
from random import shuffle, choice
|
12 |
|
|
|
|
|
|
|
|
|
13 |
logging.basicConfig(level=logging.DEBUG)
|
14 |
|
15 |
SPACER = '\n' + '*' * 40 + '\n'
|
@@ -234,7 +238,7 @@ with gr.Blocks() as demo:
|
|
234 |
language_dropdown = gr.Dropdown(choices=["English", "German", "French", "Spanish"], label="Select Language for System Prompt",value="English")
|
235 |
with gr.Column():
|
236 |
system_prompt = gr.Textbox(lines=1, label="System Prompt", value=system_prompts["English"], show_copy_button=True)
|
237 |
-
with gr.Row(variant="
|
238 |
with gr.Column(scale=1):
|
239 |
submit_btn = gr.Button(value="Generate", variant="primary")
|
240 |
clear_btn = gr.Button(value="Clear", variant="secondary")
|
|
|
10 |
from threading import Thread
|
11 |
from random import shuffle, choice
|
12 |
|
13 |
+
import json
|
14 |
+
import gspread
|
15 |
+
from google.oauth2.service_account import Credentials
|
16 |
+
|
17 |
logging.basicConfig(level=logging.DEBUG)
|
18 |
|
19 |
SPACER = '\n' + '*' * 40 + '\n'
|
|
|
238 |
language_dropdown = gr.Dropdown(choices=["English", "German", "French", "Spanish"], label="Select Language for System Prompt",value="English")
|
239 |
with gr.Column():
|
240 |
system_prompt = gr.Textbox(lines=1, label="System Prompt", value=system_prompts["English"], show_copy_button=True)
|
241 |
+
with gr.Row(variant="compact"):
|
242 |
with gr.Column(scale=1):
|
243 |
submit_btn = gr.Button(value="Generate", variant="primary")
|
244 |
clear_btn = gr.Button(value="Clear", variant="secondary")
|
requirements.txt
CHANGED
@@ -5,4 +5,6 @@ accelerate==0.33.0
|
|
5 |
sentencepiece==0.2.0
|
6 |
spaces==0.29.2
|
7 |
gradio==4.39.0
|
8 |
-
bitsandbytes==0.43.2
|
|
|
|
|
|
5 |
sentencepiece==0.2.0
|
6 |
spaces==0.29.2
|
7 |
gradio==4.39.0
|
8 |
+
bitsandbytes==0.43.2
|
9 |
+
gspread==6.1.2
|
10 |
+
google-auth==2.35.0
|