karar-shah commited on
Commit
99fce17
·
1 Parent(s): 08bae0a

Update test_gradio.py

Browse files
Files changed (1) hide show
  1. test_gradio.py +0 -17
test_gradio.py CHANGED
@@ -1,21 +1,4 @@
1
- import subprocess
2
-
3
- # Define the pip command
4
- pip_command = ["pip", "install", "gradio"]
5
- pip_command = ["pip", "install", "langchain"]
6
- pip_command = ["pip", "install", "google-generativeai"]
7
- # Run the pip command using subprocess
8
- try:
9
- # This will raise an error if the command fails
10
- subprocess.run(pip_command, check=True)
11
- subprocess.run(pip_command, check=True)
12
- subprocess.run(pip_command, check=True)
13
- print("done")
14
- except subprocess.CalledProcessError as e:
15
- print("Failed to install gradio:", e)
16
-
17
  import gradio as gr
18
-
19
  from langchain.llms import GooglePalm
20
  from langchain import PromptTemplate, LLMChain
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
 
2
  from langchain.llms import GooglePalm
3
  from langchain import PromptTemplate, LLMChain
4