Spaces:
Sleeping
Sleeping
demo
Browse files
app.py
CHANGED
@@ -32,26 +32,19 @@ def get_gorilla_response(prompt="I would like to translate from English to Frenc
|
|
32 |
raise_issue(e, model, prompt)
|
33 |
|
34 |
st.title("Try Gorilla 🦍")
|
35 |
-
st.write("Large Language Model Connected with Massive APIs")
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
with tab2:
|
47 |
-
col1, col2 = st.columns(2)
|
48 |
-
with col1:
|
49 |
-
api_provider = st.radio("Select an API Provider:", ("Huggingface", "Torch Hub", "TensorFlow Hub"))
|
50 |
-
with col2:
|
51 |
-
input = st.text_input("Ask here:")
|
52 |
-
st.write("Example: I would like to translate from English to French.")
|
53 |
|
54 |
-
|
55 |
if st.button("Run Gorilla"):
|
56 |
with st.spinner('Loading...'):
|
57 |
st.success(get_gorilla_response(input, api_provider))
|
|
|
32 |
raise_issue(e, model, prompt)
|
33 |
|
34 |
st.title("Try Gorilla 🦍")
|
35 |
+
st.write("Large Language Model Connected with Massive APIs")
|
36 |
+
st.markdown('* Read about this demo here: [Medium](https://medium.com/@dan.avila7/try-gorilla-a-large-language-model-connected-with-massive-apis-442f3b554ffb)')
|
37 |
+
st.markdown('* All code was written with the help of CodeGPT (https://codegpt.co)')
|
38 |
+
|
39 |
+
st.write('---')
|
40 |
+
col1, col2 = st.columns(2)
|
41 |
+
with col1:
|
42 |
+
api_provider = st.radio("Select an API Provider:", ("Huggingface", "Torch Hub", "TensorFlow Hub"))
|
43 |
+
with col2:
|
44 |
+
input = st.text_input("Ask here:")
|
45 |
+
st.write("Example: I would like to translate from English to French.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
+
if api_provider and input:
|
48 |
if st.button("Run Gorilla"):
|
49 |
with st.spinner('Loading...'):
|
50 |
st.success(get_gorilla_response(input, api_provider))
|