Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,19 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
|
|
|
|
3 |
import json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
|
6 |
#url = os.environ["TGI_GAUDI_ENDPOINT_URL"]
|
@@ -48,3 +61,8 @@ demo.launch()
|
|
48 |
#result = llm.invoke("Why is the sky blue?")
|
49 |
#print(result)
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
import os
|
3 |
+
import argparse
|
4 |
+
import concurrent.futures
|
5 |
import json
|
6 |
+
import requests
|
7 |
+
import logging
|
8 |
+
import math
|
9 |
+
import time
|
10 |
+
from itertools import cycle
|
11 |
+
from pathlib import Path
|
12 |
+
from langchain_community.llms import HuggingFaceEndpoint
|
13 |
+
|
14 |
+
import torch
|
15 |
+
import gradio as gr
|
16 |
+
from transformers import pipeline, AutoModelForSeq2SeqLM, AutoTokenizer
|
17 |
|
18 |
|
19 |
#url = os.environ["TGI_GAUDI_ENDPOINT_URL"]
|
|
|
61 |
#result = llm.invoke("Why is the sky blue?")
|
62 |
#print(result)
|
63 |
|
64 |
+
|
65 |
+
|
66 |
+
#result = llm.invoke("Why is the sky blue?")
|
67 |
+
#print(result)
|
68 |
+
|