bstraehle commited on
Commit
1a2d633
·
1 Parent(s): 1d0c8a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -148,12 +148,13 @@ def invoke(openai_api_key, rag_option, prompt):
148
  completion = result
149
  except Exception as e:
150
  raise gr.Error(e)
 
151
  wandb_log(prompt, completion, rag_option)
152
  return result
153
 
154
  description = """<strong>Overview:</strong> Context-aware multimodal reasoning application that demonstrates a <strong>large language model (LLM)</strong> with
155
  <strong>retrieval augmented generation (RAG)</strong>.
156
- See <a href='https://huggingface.co/spaces/bstraehle/openai-llm-rag/blob/main/openai-llm-rag.png'>architecture diagram</a>.\n\n
157
  <strong>Instructions:</strong> Enter an OpenAI API key and perform text generation use cases on <a href='""" + YOUTUBE_URL_1 + """'>YouTube</a>,
158
  <a href='""" + PDF_URL + """'>PDF</a>, and <a href='""" + WEB_URL + """'>web</a> data published after LLM knowledge cutoff (example: GPT-4 data).
159
  <ul style="list-style-type:square;">
 
148
  completion = result
149
  except Exception as e:
150
  raise gr.Error(e)
151
+ print(completion)
152
  wandb_log(prompt, completion, rag_option)
153
  return result
154
 
155
  description = """<strong>Overview:</strong> Context-aware multimodal reasoning application that demonstrates a <strong>large language model (LLM)</strong> with
156
  <strong>retrieval augmented generation (RAG)</strong>.
157
+ See the <a href='https://huggingface.co/spaces/bstraehle/openai-llm-rag/blob/main/openai-llm-rag.png'>architecture diagram</a>.\n\n
158
  <strong>Instructions:</strong> Enter an OpenAI API key and perform text generation use cases on <a href='""" + YOUTUBE_URL_1 + """'>YouTube</a>,
159
  <a href='""" + PDF_URL + """'>PDF</a>, and <a href='""" + WEB_URL + """'>web</a> data published after LLM knowledge cutoff (example: GPT-4 data).
160
  <ul style="list-style-type:square;">