zohaibterminator commited on
Commit
a7264b8
β€’
1 Parent(s): 3f5e75c

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +12 -2
  2. bolo_logo-removebg-preview.png +0 -0
app.py CHANGED
@@ -24,7 +24,7 @@ def get_response(user_input):
24
  Returns:
25
  res (string): Response from the LLM.
26
  '''
27
- url = f"http://127.0.0.1/infer/{user_id}"
28
  headers = {"Content-Type": "application/x-www-form-urlencoded"}
29
  data = {"user_input": user_input}
30
  response = requests.post(url, headers=headers, data=data)
@@ -50,7 +50,17 @@ def text_to_speech(text, lang='ur'):
50
 
51
 
52
  st.set_page_config(page_title="Urdu Virtual Assistant", page_icon="πŸ€–") # set the page title and icon
53
- st.title("Urdu Virtual Assistant") # set the main title of the application
 
 
 
 
 
 
 
 
 
 
54
 
55
  # Add a text input box
56
  audio = audiorecorder()
 
24
  Returns:
25
  res (string): Response from the LLM.
26
  '''
27
+ url = f"https://whole-icons-hammer.loca.lt/infer/{user_id}"
28
  headers = {"Content-Type": "application/x-www-form-urlencoded"}
29
  data = {"user_input": user_input}
30
  response = requests.post(url, headers=headers, data=data)
 
50
 
51
 
52
  st.set_page_config(page_title="Urdu Virtual Assistant", page_icon="πŸ€–") # set the page title and icon
53
+
54
+ col1, col2 = st.columns([1, 5]) # Adjust the ratio to control the logo and title sizes
55
+
56
+ # Display the logo in the first column
57
+ with col1:
58
+ st.image("bolo_logo-removebg-preview.png", width=100) # Adjust the width as needed
59
+
60
+ # Display the title in the second column
61
+ with col2:
62
+ st.title("Urdu Virtual Assistant") # set the main title of the application
63
+ st.write("This application is a comprehensive speech-to-speech model designed to understand and respond in Urdu. It not only handles natural conversations but also has the capability to access and provide real-time information by integrating with the Tavily search engine. Whether you're asking for the weather or engaging in everyday dialogue, this assistant delivers accurate and context-aware responses, all in Urdu.")
64
 
65
  # Add a text input box
66
  audio = audiorecorder()
bolo_logo-removebg-preview.png ADDED