awacke1 commited on
Commit
974a0bb
·
verified ·
1 Parent(s): b08c840

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -1787,13 +1787,6 @@ if example_input:
1787
  for example_input in session_state["search_queries"]:
1788
  st.write(example_input)
1789
 
1790
- #if st.button("Run Prompt", help="Click to run."):
1791
- # try:
1792
- # response=StreamLLMChatResponse(example_input)
1793
- # create_file(filename, example_input, response, should_save)
1794
- # except:
1795
- # st.write('model is asleep. Starting now on A10 GPU. Please wait one minute then retry. KEDA triggered.')
1796
-
1797
  openai.api_key = os.getenv('OPENAI_API_KEY')
1798
  if openai.api_key == None: openai.api_key = st.secrets['OPENAI_API_KEY']
1799
  menu = ["txt", "htm", "xlsx", "csv", "md", "py"]
@@ -1867,9 +1860,6 @@ video_files_mp3 = [file for file in video_files_mp3 if len(os.path.splitext(file
1867
  video_files_mp3.sort(key=lambda x: (os.path.splitext(x)[1], x), reverse=True) # sort by file type and file name in descending order
1868
 
1869
 
1870
-
1871
-
1872
-
1873
  def run_py_file(file_path):
1874
  """🏃‍♂️ Run a Python file and return its output"""
1875
  spec = importlib.util.spec_from_file_location("module.name", file_path)
@@ -1899,10 +1889,6 @@ def load_component(name, file_type):
1899
  except FileNotFoundError:
1900
  return None
1901
 
1902
-
1903
-
1904
-
1905
-
1906
  st.markdown("##### GPT-4o Omni Model: Text, Audio, Image, & Video")
1907
  option = st.selectbox("Select an option", ("Text", "Image", "Audio", "Video"))
1908
  if option == "Text":
@@ -1998,10 +1984,6 @@ def load_component(name, file_type):
1998
  )
1999
 
2000
 
2001
-
2002
-
2003
- main()
2004
-
2005
  # Delete All button for each file type
2006
  if st.sidebar.button("🗑 Delete All Audio"):
2007
  for file in audio_files:
 
1787
  for example_input in session_state["search_queries"]:
1788
  st.write(example_input)
1789
 
 
 
 
 
 
 
 
1790
  openai.api_key = os.getenv('OPENAI_API_KEY')
1791
  if openai.api_key == None: openai.api_key = st.secrets['OPENAI_API_KEY']
1792
  menu = ["txt", "htm", "xlsx", "csv", "md", "py"]
 
1860
  video_files_mp3.sort(key=lambda x: (os.path.splitext(x)[1], x), reverse=True) # sort by file type and file name in descending order
1861
 
1862
 
 
 
 
1863
  def run_py_file(file_path):
1864
  """🏃‍♂️ Run a Python file and return its output"""
1865
  spec = importlib.util.spec_from_file_location("module.name", file_path)
 
1889
  except FileNotFoundError:
1890
  return None
1891
 
 
 
 
 
1892
  st.markdown("##### GPT-4o Omni Model: Text, Audio, Image, & Video")
1893
  option = st.selectbox("Select an option", ("Text", "Image", "Audio", "Video"))
1894
  if option == "Text":
 
1984
  )
1985
 
1986
 
 
 
 
 
1987
  # Delete All button for each file type
1988
  if st.sidebar.button("🗑 Delete All Audio"):
1989
  for file in audio_files: