Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,5 @@
|
|
| 1 |
-
import
|
| 2 |
-
import requests
|
| 3 |
|
| 4 |
-
|
| 5 |
-
headers = {
|
| 6 |
-
"Authorization": f"Bearer {os.environ['HF_API_TOKEN']}",
|
| 7 |
-
}
|
| 8 |
|
| 9 |
-
|
| 10 |
-
response = requests.post(API_URL, headers=headers, json=payload)
|
| 11 |
-
return response.json()
|
| 12 |
-
|
| 13 |
-
response = query({
|
| 14 |
-
"messages": "\"Can you please let us know more details about your \"",
|
| 15 |
-
"model": "meta-llama/Llama-3.1-8B-Instruct:together"
|
| 16 |
-
})
|
| 17 |
-
|
| 18 |
-
print(response)
|
|
|
|
| 1 |
+
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
+
demo = gr.load("Helsinki-NLP/opus-mt-en-es", src="models")
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|