Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import gradio as gr
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
import gradio as gr
|
| 4 |
import random
|
|
|
|
| 5 |
|
| 6 |
checkpoint = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
| 7 |
client = InferenceClient(checkpoint)
|
|
@@ -120,7 +121,7 @@ with gr.Blocks(title="Shop finder",
|
|
| 120 |
interactive=True,
|
| 121 |
type='password',
|
| 122 |
show_label=False)
|
| 123 |
-
loginSecret = gr.Textbox(value = ACCESS_TOKEN,
|
| 124 |
visible= False)
|
| 125 |
btn.click(fn=findShops,
|
| 126 |
inputs=[platform, region, field,
|
|
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
import gradio as gr
|
| 4 |
import random
|
| 5 |
+
import os
|
| 6 |
|
| 7 |
checkpoint = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
| 8 |
client = InferenceClient(checkpoint)
|
|
|
|
| 121 |
interactive=True,
|
| 122 |
type='password',
|
| 123 |
show_label=False)
|
| 124 |
+
loginSecret = gr.Textbox(value = os.environ.getattribute("ACCESS_TOKEN"),
|
| 125 |
visible= False)
|
| 126 |
btn.click(fn=findShops,
|
| 127 |
inputs=[platform, region, field,
|