davila7 commited on
Commit
49fef6c
1 Parent(s): c06c05d
Files changed (1) hide show
  1. app.py +12 -19
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
- tab1, tab2 = st.tabs(["Intro", "Demo"])
38
-
39
- with tab1:
40
- st.markdown("# What is Gorilla?")
41
- st.write('Gorilla is an advanced Large Language Model (LLM) designed to effectively interact with a wide range of APIs, enhancing the capabilities of LLMs in real-world applications.')
42
-
43
- st.markdown('* Read about this demo here: [Medium](https://medium.com/@dan.avila7/try-gorilla-a-large-language-model-connected-with-massive-apis-442f3b554ffb)')
44
- st.markdown('* All code was written with the help of CodeGPT (https://codegpt.co)')
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
- if api_provider and input:
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))