acecalisto3 commited on
Commit
ba39bd5
·
verified ·
1 Parent(s): 7c243b8

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +0 -19
prompts.py CHANGED
@@ -1,20 +1,3 @@
1
- import gradio as gr
2
- import os
3
- from langchain_core.prompts import PromptTemplate
4
- from langchain_core.runnables import RunnableSequence
5
- from langchain_community.llms import HuggingFaceEndpoint
6
- from huggingface_hub.inference_api import InferenceApi as InferenceClient
7
-
8
- import streamlit as st
9
-
10
- from prompts import (
11
-
12
- # Initialize Hugging Face API
13
- os.environ["HUGGINGFACEHUB_API_TOKEN"] = "hf_token"
14
-
15
- # Load LLM
16
- llm = HuggingFaceHub(repo_id="tiiuae/falcon-7b-instruct", model_kwargs={"temperature": 0.1, "max_new_tokens": 500})
17
-
18
  # Define prompt templates
19
  class PromptTemplates:
20
  PREFIX = """
@@ -241,5 +224,3 @@ iface = gr.Interface(
241
  title="AI-Powered Code Assistant",
242
  description="Enter your code and select a task. The AI will analyze your code and provide assistance."
243
  )
244
-
245
- iface.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Define prompt templates
2
  class PromptTemplates:
3
  PREFIX = """
 
224
  title="AI-Powered Code Assistant",
225
  description="Enter your code and select a task. The AI will analyze your code and provide assistance."
226
  )