Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from text_generation import Client
|
|
|
2 |
|
3 |
-
API_TOKEN = ""
|
4 |
API_URL = "https://api-inference.huggingface.co/models/HuggingFaceM4/idefics-80b-instruct"
|
5 |
DECODING_STRATEGY = "Greedy"
|
6 |
QUERY = "User: What is in this image?![](https://upload.wikimedia.org/wikipedia/commons/8/86/Id%C3%A9fix.JPG)<end_of_utterance>\nAssistant:"
|
|
|
1 |
from text_generation import Client
|
2 |
+
import os
|
3 |
|
4 |
+
API_TOKEN = os.environ.get("API_TOKEN")
|
5 |
API_URL = "https://api-inference.huggingface.co/models/HuggingFaceM4/idefics-80b-instruct"
|
6 |
DECODING_STRATEGY = "Greedy"
|
7 |
QUERY = "User: What is in this image?![](https://upload.wikimedia.org/wikipedia/commons/8/86/Id%C3%A9fix.JPG)<end_of_utterance>\nAssistant:"
|