test
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import requests
|
| 3 |
import os
|
|
|
|
| 4 |
SECRET_TOKEN = os.getenv("SECRET_TOKEN")
|
| 5 |
|
| 6 |
API_URL = "https://api-inference.huggingface.co/models/microsoft/Orca-2-13b"
|
|
@@ -15,6 +16,7 @@ def query(input:str):
|
|
| 15 |
|
| 16 |
def main():
|
| 17 |
# Streamlit app title
|
|
|
|
| 18 |
st.title("Test orca2")
|
| 19 |
|
| 20 |
# Text input
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import requests
|
| 3 |
import os
|
| 4 |
+
import json
|
| 5 |
SECRET_TOKEN = os.getenv("SECRET_TOKEN")
|
| 6 |
|
| 7 |
API_URL = "https://api-inference.huggingface.co/models/microsoft/Orca-2-13b"
|
|
|
|
| 16 |
|
| 17 |
def main():
|
| 18 |
# Streamlit app title
|
| 19 |
+
st.text(json.dump(headers))
|
| 20 |
st.title("Test orca2")
|
| 21 |
|
| 22 |
# Text input
|