navhira commited on
Commit
388b4a6
·
1 Parent(s): 9809c0c
Files changed (1) hide show
  1. app.py +1 -21
app.py CHANGED
@@ -1,4 +1,3 @@
1
- '''
2
  pip install streamlit openai langchain
3
 
4
  import streamlit as st
@@ -18,23 +17,4 @@ with st.form('my_form'):
18
  if not openai_api_key.startswith('sk-'):
19
  st.warning('Please enter your OpenAI API key!', icon='⚠')
20
  if submitted and openai_api_key.startswith('sk-'):
21
- generate_response(text)
22
- '''
23
-
24
- pip install streamlit wordcloud
25
-
26
- import streamlit as st
27
- from wordcloud import WordCloud
28
- import matplotlib.pyplot as plt
29
-
30
- # Create some sample text
31
- text = 'Fun, fun, awesome, awesome, tubular, astounding, superb, great, amazing, amazing, amazing, amazing'
32
-
33
- # Create and generate a word cloud image:
34
- wordcloud = WordCloud().generate(text)
35
-
36
- # Display the generated image:
37
- plt.imshow(wordcloud, interpolation='bilinear')
38
- plt.axis("off")
39
- plt.show()
40
- st.pyplot()
 
 
1
  pip install streamlit openai langchain
2
 
3
  import streamlit as st
 
17
  if not openai_api_key.startswith('sk-'):
18
  st.warning('Please enter your OpenAI API key!', icon='⚠')
19
  if submitted and openai_api_key.startswith('sk-'):
20
+ generate_response(text)