Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import gradio as gr
|
|
2 |
import os
|
3 |
import json
|
4 |
import requests
|
|
|
|
|
|
|
5 |
|
6 |
#Streaming endpoint
|
7 |
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|
|
|
2 |
import os
|
3 |
import json
|
4 |
import requests
|
5 |
+
import wikipediaapi
|
6 |
+
import wikipedia
|
7 |
+
from wikipedia.exceptions import DisambiguationError
|
8 |
|
9 |
#Streaming endpoint
|
10 |
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|