Comments (4)
E.g. can get stuck/slow in:
elif isinstance(chat_message, str):
children = self.md.parseInline(chat_message)[0].children
if children and any("code" in child.tag for child in children):
return self.md.render(chat_message)
else:
chat_message = chat_message.replace("\n", "<br>")
return self.md.renderInline(chat_message)
else:
raise ValueError(f"Invalid message for Chatbot component: {chat_message}")
from h2ogpt.
This hack fixes it:
elif isinstance(chat_message, str):
children = self.md.parseInline(chat_message)[0].children
if children and any("code" in child.tag for child in children):
return chat_message # self.md.render(chat_message)
else:
chat_message = chat_message.replace("\n", "<br>")
return chat_message #self.md.renderInline(chat_message)
else:
raise ValueError(f"Invalid message for Chatbot component: {chat_message}")
But I don't see option to disable markdown processing gradio, and a bit odd that is so slow. They must have loops in loops or something.
from h2ogpt.
Still shows formatted output in gradio output despite no md processing:
from h2ogpt.
fixed with newer gradio
from h2ogpt.
Related Issues (20)
- Add exllamav2 support? HOT 1
- gradio->gradio hits some failurse/timeouts, debugging
- Darkmode Issues HOT 2
- Is there a way to use 2ogpt for the Arabic language? Does it support the Arabic language... and what is the solution to this problem I have? HOT 1
- How can I make the h2ogpt response in Arabic? HOT 3
- show web search links like perplexity.ai HOT 2
- /h2ogpt_conda/lib/python3.10/site-packages/flash_attn_2_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol HOT 3
- One click Macos install/Run h2ogpt-osx-m1-gpu ---- errors on loadiong model, chat HOT 5
- [UI]: Model response textbox rendering issue HOT 1
- 2024-02-03 10:12:32.967339: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered 2024-02-03 10:12:32.967643: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered 2024-02-03 10:12:33.120095: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2024-02-03 10:12:36.208224: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT HOT 4
- minimum requirement for running h2ogpt docker : CUDA out of memory HOT 6
- Chat with "private" collection via API. HOT 2
- First time use on windows throwing up odd missed path HOT 13
- NVIDIA guardrails: Remove personal identification information PII from the text HOT 10
- Stuck on starting HOT 2
- Horrifyingly slow response HOT 1
- Mac M1 is crashing HOT 1
- How do I make h2ogpt follow a link and answer based on the content or the specific question, the answer, and the information specified in the signed link without increasing or decreasing?
- Not able to use OpenAI embedding HOT 1
- Trying to convert BFloat16 to the MPS backend but it does not have support for that dtype HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h2ogpt.